diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-01 05:21:27 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-01 05:21:27 +0000 |
commit | 6755cddd68fb7aeabaaa7324a4fcc839adbea3e5 (patch) | |
tree | 46688f5b5fe377755daea3ec44caaac3a54ea8d0 /classes/module-base.oeclass | |
parent | c79a134ba8119c8e0cad78663e1b05bd7fab3120 (diff) |
Make kernel.oeclass and module-base.oeclass set PACKAGE_ARCH to MACHINE_ARCH for now, since kernels and kernel modules are generally machine specific.
BKrev: 41ad54d7mqdoE_0hWzdUsHg0QM4PzQ
Diffstat (limited to 'classes/module-base.oeclass')
-rw-r--r-- | classes/module-base.oeclass | 7 |
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) +} |