From 6a2ebb300074c8c8748ac4ac4e9ae15a32e938da Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Tue, 12 Jul 2022 08:25:50 +0100 Subject: payloads/tianocore: Limit legacy build options to CorebootPayloadPkg Limited to two legacy build options to only be set when CorebootPayloadPkg is used, as they don't exist in UefiPayloadPkg. Signed-off-by: Sean Rhodes Change-Id: I71aaa940543075962e167b52b23f45976d39c616 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65779 Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan --- payloads/external/tianocore/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'payloads') diff --git a/payloads/external/tianocore/Makefile b/payloads/external/tianocore/Makefile index 253413239c..7a3119ed77 100644 --- a/payloads/external/tianocore/Makefile +++ b/payloads/external/tianocore/Makefile @@ -92,6 +92,7 @@ BUILD_STR += --pcd gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutColumn=0 # The below are legacy options only available in CorebootPayloadPkg: # # PCIE_BASE = 0 +ifeq ($(CONFIG_TIANOCORE_COREBOOTPAYLOAD),y) ifneq ($(CONFIG_ECAM_MMCONF_BASE_ADDRESS),) BUILD_STR += -D PCIE_BASE=$(CONFIG_ECAM_MMCONF_BASE_ADDRESS) endif @@ -99,6 +100,7 @@ endif ifeq ($(CONFIG_TIANOCORE_USE_8254_TIMER),y) BUILD_STR += -D USE_HPET_TIMER=TRUE endif +endif # CONFIG_TIANOCORE_COREBOOTPAYLOAD bootloader = $(word 8,$(subst /, ,$(BUILD_STR))) -- cgit v1.2.3