aboutsummaryrefslogtreecommitdiffstats
path: root/classes/module-base.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-04-06 08:56:14 +0200
committerKoen Kooi <koen@openembedded.org>2009-04-06 08:56:14 +0200
commit389043beaee17cd6bc90e5c8e7140fdab51c9ae8 (patch)
tree54476b6b419a180dd0a7166fdbb9117b874b679d /classes/module-base.bbclass
parent45c1142d3e0fc422277cf4671613aa9b61bf010f (diff)
downloadopenembedded-389043beaee17cd6bc90e5c8e7140fdab51c9ae8.tar.gz
kernel,module-base class, bitbake.conf: introduce MACHINE_KERNEL_PR
* bandaid till we have a better way to track ABI changes
Diffstat (limited to 'classes/module-base.bbclass')
-rw-r--r--classes/module-base.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/module-base.bbclass b/classes/module-base.bbclass
index c98baceeab..bc53e1bad5 100644
--- a/classes/module-base.bbclass
+++ b/classes/module-base.bbclass
@@ -5,6 +5,10 @@ inherit kernel-arch
export OS = "${TARGET_OS}"
export CROSS_COMPILE = "${TARGET_PREFIX}"
+# A machine.conf or local.conf can increase MACHINE_KERNEL_PR to force
+# rebuilds for kernel and external modules
+PR = "${MACHINE_KERNEL_PR}"
+
export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
export KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')}"
KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}"