2015-04-29 19:45:22 +02:00
|
|
|
ifeq ($(CONFIG_SOC_INTEL_COMMON),y)
|
2015-04-27 23:03:57 +02:00
|
|
|
|
2016-07-30 16:17:13 +02:00
|
|
|
bootblock-y += util.c
|
|
|
|
|
2016-06-07 22:40:11 +02:00
|
|
|
verstage-$(CONFIG_SOC_INTEL_COMMON_LPSS_I2C) += lpss_i2c.c
|
2015-10-07 23:10:43 +02:00
|
|
|
verstage-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
|
|
|
|
2016-07-23 21:06:12 +02:00
|
|
|
bootblock-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
|
|
|
bootblock-$(CONFIG_SOC_INTEL_COMMON_LPSS_I2C) += lpss_i2c.c
|
|
|
|
|
2015-04-21 00:24:54 +02:00
|
|
|
romstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c
|
2016-06-07 22:40:11 +02:00
|
|
|
romstage-$(CONFIG_SOC_INTEL_COMMON_LPSS_I2C) += lpss_i2c.c
|
2015-04-21 00:24:54 +02:00
|
|
|
romstage-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
2015-10-15 21:07:03 +02:00
|
|
|
romstage-y += util.c
|
2015-09-11 22:51:38 +02:00
|
|
|
romstage-$(CONFIG_MMA) += mma.c
|
2015-04-21 00:24:54 +02:00
|
|
|
|
2016-07-30 16:17:13 +02:00
|
|
|
postcar-y += util.c
|
2016-10-28 23:55:46 +02:00
|
|
|
postcar-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
2016-07-30 16:17:13 +02:00
|
|
|
|
2014-04-22 19:48:29 +02:00
|
|
|
ramstage-y += hda_verb.c
|
2014-04-22 19:46:06 +02:00
|
|
|
ramstage-$(CONFIG_CACHE_MRC_SETTINGS) += mrc_cache.c
|
2015-04-21 00:24:54 +02:00
|
|
|
ramstage-$(CONFIG_CACHE_MRC_SETTINGS) += nvm.c
|
2016-11-21 18:19:53 +01:00
|
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_SPI_FLASH_PROTECT) += spi_flash.c
|
2016-06-07 22:40:11 +02:00
|
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_LPSS_I2C) += lpss_i2c.c
|
2015-02-10 06:16:14 +01:00
|
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
2015-10-15 21:07:03 +02:00
|
|
|
ramstage-y += util.c
|
2015-09-11 22:51:38 +02:00
|
|
|
ramstage-$(CONFIG_MMA) += mma.c
|
2015-09-09 01:09:28 +02:00
|
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_ACPI_WAKE_SOURCE) += acpi_wake_source.c
|
2016-05-14 00:27:42 +02:00
|
|
|
ramstage-y += vbt.c
|
2016-05-13 04:10:11 +02:00
|
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_GFX_OPREGION) += opregion.c
|
2016-04-18 22:40:04 +02:00
|
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_ACPI) += ./acpi/acpi.c
|
2016-06-28 22:41:07 +02:00
|
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_NHLT) += nhlt.c
|
2015-04-27 23:03:57 +02:00
|
|
|
|
2016-05-05 03:15:49 +02:00
|
|
|
smm-$(CONFIG_SOC_INTEL_COMMON_SMI) += smihandler.c
|
|
|
|
|
2015-08-28 20:28:35 +02:00
|
|
|
# Create and add the MRC cache to the cbfs image
|
|
|
|
ifneq ($(CONFIG_CHROMEOS),y)
|
|
|
|
$(obj)/mrc.cache: $(obj)/config.h
|
|
|
|
dd if=/dev/zero count=1 \
|
|
|
|
bs=$(shell printf "%d" $(CONFIG_MRC_SETTINGS_CACHE_SIZE) ) | \
|
|
|
|
tr '\000' '\377' > $@
|
|
|
|
|
|
|
|
cbfs-files-$(CONFIG_CACHE_MRC_SETTINGS) += mrc.cache
|
|
|
|
mrc.cache-file := $(obj)/mrc.cache
|
|
|
|
mrc.cache-position := $(CONFIG_MRC_SETTINGS_CACHE_BASE)
|
|
|
|
mrc.cache-type := mrc_cache
|
|
|
|
endif
|
|
|
|
|
2015-09-11 22:51:38 +02:00
|
|
|
ifeq ($(CONFIG_MMA),y)
|
|
|
|
MMA_BLOBS_PATH = $(call strip_quotes,$(CONFIG_MMA_BLOBS_PATH))
|
|
|
|
MMA_TEST_NAMES = $(notdir $(wildcard $(MMA_BLOBS_PATH)/tests/*))
|
|
|
|
MMA_TEST_CONFIG_NAMES = $(notdir $(wildcard $(MMA_BLOBS_PATH)/configs/*))
|
|
|
|
|
|
|
|
#
|
|
|
|
# MMA_CBFS_template is the template to be expanded by eval
|
|
|
|
# where $(1) is file name
|
|
|
|
# $(2) is file path
|
|
|
|
# $(3) is file type, efi for test names (all .EFI files under $(MMA_BLOBS_PATH)/tests )
|
|
|
|
# , mma for test param (all .BIN files under $(MMA_BLOBS_PATH)/configs/<test name>)
|
|
|
|
#
|
|
|
|
# $(MMA_BLOBS_PATH)/tests/<testX>.efi has coresponding test params
|
|
|
|
# at $(MMA_BLOBS_PATH)/configs/<testX>/<XYZ>.bin
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
define MMA_CBFS_template =
|
|
|
|
cbfs-files-y += $(1)
|
|
|
|
$(1)-file := $(MMA_BLOBS_PATH)/$(2)/$(1)
|
|
|
|
$(1)-type := $(3)
|
|
|
|
endef
|
|
|
|
|
|
|
|
#
|
|
|
|
# following loop calls MMA_CBFS_template for each .EFI file under $(MMA_BLOBS_PATH)/tests with type = efi
|
|
|
|
#
|
|
|
|
$(foreach mma_test,$(MMA_TEST_NAMES),$(eval $(call MMA_CBFS_template,$(mma_test),tests,efi)))
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# following nested loops calls MMA_CBFS_template for each .BIN file under each MMA_TEST_CONFIG_NAMES
|
|
|
|
#
|
|
|
|
# foreach <testX> do following
|
|
|
|
# foreach <XYZ>.bin in <testX> do following
|
|
|
|
# call MMA_CBFS_template for each <XYZ>.bin under current <testX> with type = mma
|
|
|
|
#
|
|
|
|
|
|
|
|
$(foreach mma_test, $(MMA_TEST_CONFIG_NAMES),\
|
|
|
|
$(eval $(foreach mma_config,$(notdir $(wildcard $(MMA_BLOBS_PATH)/configs/$(mma_test)/*)),\
|
|
|
|
$(eval $(call MMA_CBFS_template,$(mma_config),configs/$(mma_test),mma)))))
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2016-05-14 00:27:42 +02:00
|
|
|
cbfs-files-$(CONFIG_ADD_VBT_DATA_FILE) += vbt.bin
|
|
|
|
vbt.bin-file := $(call strip_quotes,$(CONFIG_VBT_FILE))
|
|
|
|
vbt.bin-type := raw
|
|
|
|
|
2015-04-27 23:03:57 +02:00
|
|
|
endif
|