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/kernel.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/kernel.oeclass')
-rw-r--r-- | classes/kernel.oeclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass index 0190e5fce6..a97f05880c 100644 --- a/classes/kernel.oeclass +++ b/classes/kernel.oeclass @@ -43,6 +43,13 @@ def get_kernelversion(p): KERNEL_VERSION = "${@get_kernelversion('${S}/include/linux/version.h')}" +# kernels 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) +} + kernel_do_compile() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" |