summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2010-05-03 23:13:47 +0200
committerEric Bénard <eric@eukrea.com>2010-05-18 10:51:15 +0200
commitf2f3cff6cfcd46a0dae0e0f90e27fc246c6edc32 (patch)
treefc658cb9c5276f6283d036349fabb084c47b90ad /classes
parent39b030e6dadf68800c0362c0a53ddd78fb3f652c (diff)
module-base.bbclass: keep PR if MACHINE_KERNEL_PR is not set
Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Phil Blundell <philb@gnu.org>
Diffstat (limited to 'classes')
-rw-r--r--classes/module-base.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/module-base.bbclass b/classes/module-base.bbclass
index bc53e1bad5..9aaaa4e8e3 100644
--- a/classes/module-base.bbclass
+++ b/classes/module-base.bbclass
@@ -7,7 +7,12 @@ 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}"
+python __anonymous () {
+ machine_kernel_pr = bb.data.getVar('MACHINE_KERNEL_PR', d, True)
+
+ if machine_kernel_pr:
+ bb.data.setVar('PR', machine_kernel_pr, d)
+}
export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
export KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')}"