[meta-intel] [PATCH] linux-yocto: fix builds for x32

Christopher Larson kergoth at gmail.com
Thu Dec 29 12:28:24 PST 2016


From: Christopher Larson <chris_larson at mentor.com>

corei7-64-intel-common overrides are used here, but this isn't in use when
building for x32. Also obey this for corei7-64-x32-intel-common.

An alternative would be to place this in intel-common-pkgarch.inc, where the
common pkgarch is set up, but that would have higher potential impact, being
global.

With this fix applied, along with other fixes to oe-core, it's possible to get
successful builds with DEFAULTTUNE set to "corei7-64-x32", and boot the
resulting images for intel-corei7-64.

Signed-off-by: Christopher Larson <chris_larson at mentor.com>
---
 common/recipes-kernel/linux/linux-yocto_%.bbappend | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 common/recipes-kernel/linux/linux-yocto_%.bbappend

diff --git a/common/recipes-kernel/linux/linux-yocto_%.bbappend b/common/recipes-kernel/linux/linux-yocto_%.bbappend
new file mode 100644
index 0000000..7c29be1
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto_%.bbappend
@@ -0,0 +1,4 @@
+# The kernel build is 64-bit regardless, so include both common overrides.
+# Without this, the kernel will be missing vars that make it buildable for the
+# intel-corei7-64 machine.
+MACHINEOVERRIDES_prepend_corei7-64-x32-intel-common = "corei7-64-intel-common:"
-- 
2.8.0



More information about the meta-intel mailing list