[OE-core] [PATCH 05/16] gnu-efi: build 64-bit for x32
Christopher Larson
kergoth at gmail.com
Thu Jan 5 19:46:17 UTC 2017
From: Christopher Larson <chris_larson at mentor.com>
We're targeting the x86_64 EFI ABI.
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
---
meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb
index 9ddc4ba..e55ab7f 100644
--- a/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb
+++ b/meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb
@@ -52,3 +52,12 @@ BBCLASSEXTEND = "native"
# CFLAGS += -mno-mmx -mno-sse
# So also remove -mfpmath=sse from TUNE_CCARGS
TUNE_CCARGS_remove = "-mfpmath=sse"
+
+python () {
+ ccargs = d.getVar('TUNE_CCARGS', True).split()
+ if '-mx32' in ccargs:
+ # use x86_64 EFI ABI
+ ccargs.remove('-mx32')
+ ccargs.append('-m64')
+ d.setVar('TUNE_CCARGS', ' '.join(ccargs))
+}
--
2.8.0
More information about the Openembedded-core
mailing list