From 79591b76674a8c0ed150021a27771a73a70d159b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= Date: Tue, 22 Nov 2022 17:05:44 +0100 Subject: [PATCH] boot/edk2: fix the build for arm sgi575 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The edk2 package can be configured for platform Arm Sgi575 but this does not build correctly: Usage: build.exe [options] [all|fds|genc|genmake|clean|cleanall|cleanlib|modules|libraries|run] build.exe: error: option -a: invalid choice: '-b' (choose from 'IA32', 'X64', 'EBC', 'ARM', 'AARCH64', 'RISCV64') make[1]: *** [package/pkg-generic.mk:293: /home/thomas/buildroot/buildroot/output/build/edk2-edk2-stable202102/.stamp_built] Error 2 make: *** [Makefile:84: _all] Error 2 Add the necessary definitions to fix the build. Signed-off-by: Vincent Stehlé Cc: Dick Olsson Signed-off-by: Thomas Petazzoni --- boot/edk2/edk2.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boot/edk2/edk2.mk b/boot/edk2/edk2.mk index 5cbd9d152e..7d8765c310 100644 --- a/boot/edk2/edk2.mk +++ b/boot/edk2/edk2.mk @@ -75,6 +75,12 @@ EDK2_PACKAGE_NAME = ArmVirtPkg EDK2_PLATFORM_NAME = ArmVirtQemuKernel EDK2_BUILD_DIR = $(EDK2_PLATFORM_NAME)-$(EDK2_ARCH) +else ifeq ($(BR2_TARGET_EDK2_PLATFORM_ARM_SGI575),y) +EDK2_ARCH = AARCH64 +EDK2_PACKAGE_NAME = Platform/ARM/SgiPkg/Sgi575 +EDK2_PLATFORM_NAME = Sgi575 +EDK2_BUILD_DIR = $(EDK2_PLATFORM_NAME) + else ifeq ($(BR2_TARGET_EDK2_PLATFORM_ARM_VEXPRESS_FVP_AARCH64),y) EDK2_ARCH = AARCH64 EDK2_PACKAGE_NAME = Platform/ARM/VExpressPkg