diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -440,6 +440,23 @@ endif endif ############################################################################### +# Handle CONFIG_* variables that depend on others set (and verified) above. + +# The external DMI decoder (dmidecode) does not work in libpayload. Bail out if the internal one got disabled. +ifeq ($(TARGET_OS), libpayload) +ifeq ($(CONFIG_INTERNAL), yes) +ifeq ($(CONFIG_INTERNAL_DMI), no) +UNSUPPORTED_FEATURES += CONFIG_INTERNAL_DMI=no +else +override CONFIG_INTERNAL_DMI = yes +endif +endif +endif + +# Use internal DMI/SMBIOS decoder by default instead of relying on dmidecode. +CONFIG_INTERNAL_DMI ?= yes + +############################################################################### # Programmer drivers and programmer support infrastructure. # Depending on the CONFIG_* variables set and verified above we set compiler flags and parameters below. @@ -447,10 +464,13 @@ FEATURE_CFLAGS += -D'CONFIG_DEFAULT_PROGRAMMER=$(CONFIG_DEFAULT_PROGRAMMER)' ifeq ($(CONFIG_INTERNAL), yes) FEATURE_CFLAGS += -D'CONFIG_INTERNAL=1' -PROGRAMMER_OBJS += processor_enable.o chipset_enable.o board_enable.o cbtable.o dmi.o internal.o +PROGRAMMER_OBJS += processor_enable.o chipset_enable.o board_enable.o cbtable.o internal.o ifeq ($(ARCH), x86) PROGRAMMER_OBJS += it87spi.o it85spi.o sb600spi.o amd_imc.o wbsio_spi.o mcp6x_spi.o -PROGRAMMER_OBJS += ichspi.o ich_descriptors.o +PROGRAMMER_OBJS += ichspi.o ich_descriptors.o dmi.o +ifeq ($(CONFIG_INTERNAL_DMI), yes) +FEATURE_CFLAGS += -D'CONFIG_INTERNAL_DMI=1' +endif else endif NEED_PCI := yes |