src/*/intel: introduce warning when building with no IFD

Add a warning as suggested in patch CB:28233 with the
"CONFIG_INTEL_DESCRIPTOR_MODE_REQUIRED" option.

Change-Id: I42b6b336bb519f3d18b5a41eb20b380636ff5819
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/28382
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Angel Pons 2018-09-11 13:49:45 +02:00 committed by Nico Huber
parent ef8b95745f
commit a52016cc46
4 changed files with 26 additions and 1 deletions

View File

@ -31,6 +31,12 @@ config INTEL_DESCRIPTOR_MODE_CAPABLE
This config simply states that the platform is *capable* of running in
descriptor mode (when the descriptor in flash is valid).
config INTEL_DESCRIPTOR_MODE_REQUIRED
def_bool y if INTEL_DESCRIPTOR_MODE_CAPABLE
help
This config states descriptor mode is *required* for the platform to
function properly, or to function at all.
config INTEL_CHIPSET_LOCKDOWN
depends on HAVE_INTEL_CHIPSET_LOCKDOWN && HAVE_SMI_HANDLER && !CHROMEOS
#ChromeOS's payload seems to handle finalization on its on.

View File

@ -22,6 +22,8 @@ ifeq ($(CONFIG_HAVE_INTEL_FIRMWARE),y)
ifeq ($(CONFIG_HAVE_IFD_BIN),y)
INTERMEDIATE+=add_intel_firmware
else ifeq ($(CONFIG_INTEL_DESCRIPTOR_MODE_REQUIRED),y)
INTERMEDIATE += warn_intel_firmware
endif
IFD_BIN_PATH := $(CONFIG_IFD_BIN_PATH)
@ -85,6 +87,13 @@ ifeq ($(CONFIG_EM100),y)
mv $(obj)/coreboot.pre.new $(obj)/coreboot.pre
endif
PHONY+=add_intel_firmware
warn_intel_firmware:
printf "\n\t** WARNING **\n"
printf "coreboot will be built without an Intel Firmware Descriptor.\n"
printf "Never write a complete coreboot.rom without an IFD to your\n"
printf "board's flash chip! You can use flashrom's IFD or layout\n"
printf "parameters to flash only to the BIOS region.\n\n"
PHONY+=add_intel_firmware warn_intel_firmware
endif

View File

@ -36,6 +36,11 @@ config EHCI_BAR
hex
default 0xfef00000
## Some enterprise variants may require an IFD
config INTEL_DESCRIPTOR_MODE_REQUIRED
bool
default n
config HPET_MIN_TICKS
hex
default 0x80

View File

@ -36,6 +36,11 @@ config EHCI_BAR
hex
default 0xfef00000
## Some enterprise variants may require an IFD
config INTEL_DESCRIPTOR_MODE_REQUIRED
bool
default n
config HPET_MIN_TICKS
hex
default 0x80