summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2016-12-13 20:00:35 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-09 14:34:36 +0000
commit08f62237c46e9bbb37b920330b971b0d01028332 (patch)
treeb61e10f02c7cd7684be6f7155303f90b87d73979 /meta/recipes-bsp
parentddd1da619d7f10dba4af6a4b83d8f18e0d63e871 (diff)
downloadpoky-08f62237c46e9bbb37b920330b971b0d01028332.tar.gz
gnu-efi: build 64-bit for x32
We're targeting the x86_64 EFI ABI. (From OE-Core rev: 24325410acb670a3e7bc626ac3607efa8df38dc5) (From OE-Core rev: 6017c9b2009357ece12be18550ddfbafe555430a) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb9
1 files changed, 9 insertions, 0 deletions
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 e0d8ee76dd..8de485c00c 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"
52# CFLAGS += -mno-mmx -mno-sse 52# CFLAGS += -mno-mmx -mno-sse
53# So also remove -mfpmath=sse from TUNE_CCARGS 53# So also remove -mfpmath=sse from TUNE_CCARGS
54TUNE_CCARGS_remove = "-mfpmath=sse" 54TUNE_CCARGS_remove = "-mfpmath=sse"
55
56python () {
57 ccargs = d.getVar('TUNE_CCARGS', True).split()
58 if '-mx32' in ccargs:
59 # use x86_64 EFI ABI
60 ccargs.remove('-mx32')
61 ccargs.append('-m64')
62 d.setVar('TUNE_CCARGS', ' '.join(ccargs))
63}