From 08f62237c46e9bbb37b920330b971b0d01028332 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 13 Dec 2016 20:00:35 -0700 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- meta/recipes-bsp/gnu-efi/gnu-efi_3.0.4.bb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'meta/recipes-bsp') 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" # 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)) +} -- cgit v1.2.3-54-g00ecf