payloads/tianocore: Allow passing custom build params to all versions

Allow passing custom build parameters to any version of edk2, not
just forks.

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: I4eed535415ba15ae73e22cada9153820538f5f6d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66210
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
This commit is contained in:
Sean Rhodes 2022-07-27 21:41:54 +01:00 committed by Martin L Roth
parent 85c9a7320f
commit c5055883eb
2 changed files with 5 additions and 9 deletions

View File

@ -210,15 +210,13 @@ config TIANOCORE_USE_8254_TIMER
endif endif
if TIANOCORE_CUSTOM
config TIANOCORE_CUSTOM_BUILD_PARAMS config TIANOCORE_CUSTOM_BUILD_PARAMS
string "TianoCore additional custom build parameters" string "TianoCore additional custom build parameters"
help help
Custom TianoCore forks may have different sets of parameters passed edk2 has build options that are not modified by coreboot, and these can be
to build command. You may specify additional parameters to the custom found in `UefiPayloadPkg/UefiPayloadPkg.dsc`. Forks may also support
TianoCore build additional build options that should have been upstreamed but have not.
endif This option can support both macros `-D` and Pcds `--pcd`.
endif endif

View File

@ -106,11 +106,9 @@ endif # CONFIG_TIANOCORE_COREBOOTPAYLOAD
bootloader = $(word 8,$(subst /, ,$(BUILD_STR))) bootloader = $(word 8,$(subst /, ,$(BUILD_STR)))
ifeq ($(CONFIG_TIANOCORE_CUSTOM),y)
ifneq ($(CONFIG_TIANOCORE_CUSTOM_BUILD_PARAMS),) ifneq ($(CONFIG_TIANOCORE_CUSTOM_BUILD_PARAMS),)
BUILD_STR += $(CONFIG_TIANOCORE_CUSTOM_BUILD_PARAMS) BUILD_STR += $(CONFIG_TIANOCORE_CUSTOM_BUILD_PARAMS)
endif endif
endif
all: clean build all: clean build