19cd07f2a0
This patch is intended to make Intel common PCH code based on Gen-6 Sunrisepoint PCH (SPT). All common PCH code blocks between Gen-6 till latest-PCH should be part of soc/intel/common/pch/ directory. A SoC Kconfig might select this option to include base PCH package while building new SOC block. Currently majority of common IP code blocks are part of soc/intel/common/block/ and SoC Kconfig just select those Kconfig option. Now addition to that SoC might only selects required base PCH block to include those common IP block selections. BUG=none BRANCH=b:78109109 TEST=soc code can select PCH config option Change-Id: I2934e3b1aed9d692eb00df18ce69a7fcd3096f6b Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/26348 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
77 lines
2.3 KiB
Makefile
77 lines
2.3 KiB
Makefile
ifeq ($(CONFIG_SOC_INTEL_COMMON),y)
|
|
|
|
subdirs-y += basecode/
|
|
subdirs-y += block/
|
|
subdirs-y += pch/
|
|
|
|
bootblock-y += util.c
|
|
|
|
verstage-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
|
|
|
bootblock-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
|
|
|
romstage-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
|
romstage-y += util.c
|
|
romstage-$(CONFIG_MMA) += mma.c
|
|
romstage-y += smbios.c
|
|
|
|
postcar-y += util.c
|
|
postcar-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
|
|
|
ramstage-y += hda_verb.c
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_RESET) += reset.c
|
|
ramstage-y += util.c
|
|
ramstage-$(CONFIG_MMA) += mma.c
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_ACPI_WAKE_SOURCE) += acpi_wake_source.c
|
|
ramstage-y += vbt.c
|
|
ramstage-$(CONFIG_SOC_INTEL_COMMON_NHLT) += nhlt.c
|
|
|
|
bootblock-$(CONFIG_TPM_CR50) += tpm_tis.c
|
|
verstage-$(CONFIG_TPM_CR50) += tpm_tis.c
|
|
romstage-$(CONFIG_TPM_CR50) += tpm_tis.c
|
|
ramstage-$(CONFIG_TPM_CR50) += tpm_tis.c
|
|
|
|
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
|
|
|
|
endif
|