From 716bd48a53e826645e39960c379dd0d6b55d500e Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Thu, 6 Oct 2022 21:33:46 +0100 Subject: payloads/edk2: Add a recipe to build UniversalPayload.elf Add a recipe to build UniversalPayload.elf, which uses a wrapper for the UniversalPayloadBuild.py that is hosted in the edk2 repository. Signed-off-by: Sean Rhodes Change-Id: I2aa318513244f576e07e72713fad3b4f7bd7c22e Reviewed-on: https://review.coreboot.org/c/coreboot/+/68183 Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan --- payloads/external/edk2/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/payloads/external/edk2/Makefile b/payloads/external/edk2/Makefile index 041d282d03..a1c2072857 100644 --- a/payloads/external/edk2/Makefile +++ b/payloads/external/edk2/Makefile @@ -198,6 +198,18 @@ $(WORKSPACE)/Build/UefiPayloadPkgX64/$(RELEASE_STR)_COREBOOT/FV/UEFIPAYLOAD.fd: fi echo "Success!"; \ +$(WORKSPACE)/Build/UefiPayloadPkgX64/UniversalPayload.elf: \ + prep print + cd $(WORKSPACE); \ + source $(EDK2_PATH)/edksetup.sh; \ + echo -n "EDK2: Building... "; \ + $(EDK2_PATH)/UefiPayloadPkg/UniversalPayloadBuild.sh -a IA32 -a X64 -b $(RELEASE_STR) $(BUILD_STR) + if [ ! -f $@ ]; then \ + echo "Failed!"; \ + exit 1; \ + fi + echo "Success!"; \ + UefiPayloadPkg: $(WORKSPACE)/Build/UefiPayloadPkgX64/$(RELEASE_STR)_COREBOOT/FV/UEFIPAYLOAD.fd mv $(WORKSPACE)/Build/UefiPayloadPkgX64/$(RELEASE_STR)_COREBOOT/FV/UEFIPAYLOAD.fd \ ../../../build/UEFIPAYLOAD.fd -- cgit v1.2.3