diff options
author | Sean Rhodes <sean@starlabs.systems> | 2022-10-06 21:33:46 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-10-11 14:42:39 +0000 |
commit | 716bd48a53e826645e39960c379dd0d6b55d500e (patch) | |
tree | 0b53a484d8337e95d6d8e200e2a22671b28f3dd0 /payloads/external/edk2 | |
parent | 461c33b226da241fdb5944f42cccd60fe9918621 (diff) |
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 <sean@starlabs.systems>
Change-Id: I2aa318513244f576e07e72713fad3b4f7bd7c22e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68183
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 | 12 |
1 files changed, 12 insertions, 0 deletions
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 |