From e4c665acba19bc48e6931369d621514299f6dfab Mon Sep 17 00:00:00 2001 From: fbrosson Date: Fri, 28 Sep 2018 11:55:42 +0000 Subject: [PATCH] edk2: drop commandSuffix, try to build on x86. The build does not work on x86 but this could change if someone has the enough skills, interest and time for "fixing" this. --- sys-boot/edk2/edk2-2018.recipe | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys-boot/edk2/edk2-2018.recipe b/sys-boot/edk2/edk2-2018.recipe index 1a8e5996e..ae3792f5c 100644 --- a/sys-boot/edk2/edk2-2018.recipe +++ b/sys-boot/edk2/edk2-2018.recipe @@ -25,14 +25,11 @@ CHECKSUM_SHA256="a37aa6dc7a4326b562ce03e225afd96a0cd1dc847d9aeddfd867ce6b2e7cc7b SOURCE_DIR="edk2-vUDK$portVersion" PATCHES="edk2-$portVersion.patchset" -ARCHITECTURES="!x86_gcc2 !x86 x86_64" -SECONDARY_ARCHITECTURES="!x86" -DISABLE_SOURCE_PACKAGE="yes" - -commandSuffix=$secondaryArchSuffix +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" if [ "$targetArchitecture" = x86_gcc2 ]; then - commandSuffix= +SECONDARY_ARCHITECTURES="?x86" fi +DISABLE_SOURCE_PACKAGE="yes" PROVIDES=" edk2$secondaryArchSuffix = $portVersion compat >= 0 @@ -48,7 +45,7 @@ BUILD_REQUIRES=" BUILD_PREREQUIRES=" cmd:find cmd:gcc$secondaryArchSuffix - cmd:iasl$commandSuffix + cmd:iasl cmd:make cmd:nasm cmd:python2 @@ -76,7 +73,10 @@ PATCH() BUILD() { - make -C BaseTools + if [ "$effectiveTargetArchitecture" = x86 ]; then + HOST_ARCH=IA32 + fi + make -C BaseTools ${HOST_ARCH:+HOST_ARCH=$HOST_ARCH} . ./edksetup.sh local EDK_TOOLS_PATH="$sourceDir"/BaseTools . ./edksetup.sh BaseTools