diff options
author | Sean Rhodes <sean@starlabs.systems> | 2022-10-06 21:32:43 +0100 |
---|---|---|
committer | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2022-10-10 21:44:36 +0000 |
commit | a46fd869100367bbc599ac5c6a6f780048669f94 (patch) | |
tree | 2d0fd5a2869d201d62da496b3036dcddf9354c81 /payloads/external/edk2 | |
parent | 3c166167257afa96e811abc5ddaf5606cd665c50 (diff) |
payloads/edk2: Guard the build target
Specifying a build target only applies to UefiPayloadPkg, so guard it
against the relevant Kconfig option.
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Change-Id: Ia4597b5ed76616e39cec45f8a69be9f1ccd72d4c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68182
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to 'payloads/external/edk2')
-rw-r--r-- | payloads/external/edk2/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/payloads/external/edk2/Makefile b/payloads/external/edk2/Makefile index f9a48fb827..041d282d03 100644 --- a/payloads/external/edk2/Makefile +++ b/payloads/external/edk2/Makefile @@ -8,7 +8,9 @@ export WORKSPACE := $(CURDIR)/workspace export EDK2_PATH := $(WORKSPACE)/$(word 3,$(subst /, ,$(CONFIG_EDK2_REPOSITORY))) export PACKAGES_PATH := $(EDK2_PATH) +ifeq ($(CONFIG_EDK2_UEFIPAYLOAD),y) BUILD_STR = -p UefiPayloadPkg/UefiPayloadPkg.dsc +endif BUILD_STR += -t COREBOOT BUILD_STR += -D BOOTLOADER=COREBOOT ifneq ($(CONFIG_EDK2_VERBOSE_BUILD),y) |