[oe-commits] Eric Bénard : module-base.bbclass: keep PR if MACHINE_KERNEL_PR is not set

git version control git at git.openembedded.org
Tue May 18 08:55:06 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: f2f3cff6cfcd46a0dae0e0f90e27fc246c6edc32
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f2f3cff6cfcd46a0dae0e0f90e27fc246c6edc32

Author: Eric Bénard <eric at eukrea.com>
Date:   Mon May  3 23:13:47 2010 +0200

module-base.bbclass: keep PR if MACHINE_KERNEL_PR is not set

Signed-off-by: Eric Bénard <eric at eukrea.com>
Acked-by: Phil Blundell <philb at gnu.org>

---

 classes/module-base.bbclass |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/classes/module-base.bbclass b/classes/module-base.bbclass
index bc53e1b..9aaaa4e 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')}"





More information about the Openembedded-commits mailing list