summaryrefslogtreecommitdiff
path: root/classes/module-base.oeclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/module-base.oeclass')
-rw-r--r--classes/module-base.oeclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/module-base.oeclass b/classes/module-base.oeclass
index 77e8ae4f78..0036ddf20c 100644
--- a/classes/module-base.oeclass
+++ b/classes/module-base.oeclass
@@ -11,3 +11,10 @@ KERNEL_CCSUFFIX = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-cc
KERNEL_LDSUFFIX = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-ldsuffix')}
KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}"
KERNEL_LD = "${LD}${KERNEL_LDSUFFIX}"
+
+# kernel modules are generally machine specific
+python () {
+ mach = oe.data.getVar('MACHINE', d, 1)
+ if mach:
+ oe.data.setVar('PACKAGE_ARCH', oe.data.getVar('MACHINE_ARCH', d, 1), d)
+}