diff options
author | Christopher Larson <chris_larson@mentor.com> | 2016-12-13 20:00:35 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-09 13:39:12 +0000 |
commit | c12cd31231ac81d73b199f725ea4586138ead4a2 (patch) | |
tree | c63f76a6cf524ca7ae414b4fa0f17e59e2b0088b /meta/recipes-bsp/gnu-efi | |
parent | 00e354910b9ff751acb937e6ca2ef9f66a49bac7 (diff) | |
download | poky-c12cd31231ac81d73b199f725ea4586138ead4a2.tar.gz |
gnu-efi: build 64-bit for x32
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>
Diffstat (limited to 'meta/recipes-bsp/gnu-efi')
-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 9ddc4ba716..e55ab7f059 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 | } | ||