summaryrefslogtreecommitdiff
path: root/classes/module-base.bbclass
diff options
context:
space:
mode:
authorLuke Gox <luke@box0.(none)>2009-04-09 20:07:55 +0200
committerLuke Gox <luke@box0.(none)>2009-04-09 20:07:55 +0200
commitb2418f27304b215acd011f0b3e4f258329f21545 (patch)
tree58361e035aa81827d57c3ee9f39dfcf0f105d5c4 /classes/module-base.bbclass
parent6255cd11b01d03599cb9c1e9391c8c5da1467af2 (diff)
parentcf68d88dc9a23665ac8cb8bf7599d4f210d52718 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
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"]}"