summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
Diffstat (limited to 'payloads')
-rw-r--r--payloads/external/edk2/Makefile12
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