]> code.ossystems Code Review - openembedded-core.git/commitdiff
gnu-efi: build 64-bit for x32
authorChristopher Larson <chris_larson@mentor.com>
Wed, 14 Dec 2016 03:00:35 +0000 (20:00 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Jan 2017 13:34:31 +0000 (13:34 +0000)
We're targeting the x86_64 EFI ABI.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb

index 9ddc4ba71605ee6c7ac65b1df69dcd86336b0d1e..e55ab7f059e63f78a5c1e4787fdb69f7d614fdb2 100644 (file)
@@ -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))
+}