[meta-intel] [PATCH] efilinux: Enable muslx32 build

swee.aun.khor at intel.com swee.aun.khor at intel.com
Wed Aug 16 16:44:58 PDT 2017


From: sweeaun <swee.aun.khor at intel.com>

Enable muslx32 build for efilinux. Using -m64 instead of -mx32 in
TUNE_CCARGS as efi needed to be built for 64 bits.

Signed-off-by: sweeaun <swee.aun.khor at intel.com>
---
 common/recipes-bsp/efilinux/efilinux_1.1.bb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/common/recipes-bsp/efilinux/efilinux_1.1.bb b/common/recipes-bsp/efilinux/efilinux_1.1.bb
index 04422dd..d30377b 100644
--- a/common/recipes-bsp/efilinux/efilinux_1.1.bb
+++ b/common/recipes-bsp/efilinux/efilinux_1.1.bb
@@ -28,3 +28,12 @@ do_deploy () {
 }
 addtask deploy before do_build after do_compile
 
+python () {
+    ccargs = d.getVar('TUNE_CCARGS').split()
+    if '-mx32' in ccargs:
+        # use x86_64 EFI ABI
+        ccargs.remove('-mx32')
+        ccargs.append('-m64')
+        d.setVar('TUNE_CCARGS', ' '.join(ccargs))
+}
+
-- 
2.7.4



More information about the meta-intel mailing list