All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] module-base.bbclass: keep PR if MACHINE_KERNEL_PR is not set
@ 2010-05-03 21:21 Eric Benard
  2010-05-12 15:34 ` Eric Bénard
  2010-05-14 15:10 ` [RFC][PATCH] " Eric Bénard
  0 siblings, 2 replies; 13+ messages in thread
From: Eric Benard @ 2010-05-03 21:21 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Eric Benard <eric@eukrea.com>
---
 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')}"
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-05-17  8:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-03 21:21 [PATCH] module-base.bbclass: keep PR if MACHINE_KERNEL_PR is not set Eric Benard
2010-05-12 15:34 ` Eric Bénard
2010-05-14 15:10 ` [RFC][PATCH] " Eric Bénard
2010-05-14 15:52   ` Koen Kooi
2010-05-14 17:17     ` Eric Bénard
2010-05-14 17:34       ` Koen Kooi
2010-05-14 17:45         ` Eric Bénard
2010-05-14 19:55           ` Phil Blundell
2010-05-14 20:15             ` Eric Bénard
2010-05-14 21:02               ` Phil Blundell
2010-05-17  7:12                 ` Eric Bénard
2010-05-17  8:02                   ` Phil Blundell
2010-05-14 16:25   ` Phil Blundell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.