diff options
author | Christopher Larson <chris_larson@mentor.com> | 2016-12-13 20:00:35 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-09 14:34:36 +0000 |
commit | 08f62237c46e9bbb37b920330b971b0d01028332 (patch) | |
tree | b61e10f02c7cd7684be6f7155303f90b87d73979 /meta/recipes-bsp | |
parent | ddd1da619d7f10dba4af6a4b83d8f18e0d63e871 (diff) | |
download | poky-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.bb | 9 |
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 |
54 | TUNE_CCARGS_remove = "-mfpmath=sse" | 54 | TUNE_CCARGS_remove = "-mfpmath=sse" |
55 | |||
56 | python () { | ||
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 | } | ||