]> 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>
Sat, 9 Dec 2017 11:05:55 +0000 (11:05 +0000)
We're targeting the x86_64 EFI ABI.

(From OE-Core rev: 24325410acb670a3e7bc626ac3607efa8df38dc5)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb

index e0d8ee76ddd9e8974225cb16744b78a3e8c9bfeb..8de485c00cfd85c7fd436ece493f8927d851b9c0 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))
+}