Patchwork [CONSOLIDATED,PULL,22/27] kernel.bbclass: respect MACHINE_KERNEL_PR

login
register
mail settings
Submitter Saul Wold
Date Oct. 23, 2011, 6:27 p.m.
Message ID <d27baf0bd12f980b3bdde6c30d29b098ce172d51.1319394187.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/13797/
State New, archived
Headers show

Comments

Saul Wold - Oct. 23, 2011, 6:27 p.m.
From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

MACHINE_KERNEL_PR was introduced long ago in org.oe.dev. It's present in
meta-oe kernel.bbclass. Several machines depend on this functionality.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 meta/classes/kernel.bbclass |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 42543e0..60be980 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -20,6 +20,11 @@  python __anonymous () {
     image = bb.data.getVar('INITRAMFS_IMAGE', d, True)
     if image:
         bb.data.setVar('INITRAMFS_TASK', '${INITRAMFS_IMAGE}:do_rootfs', d)
+
+    machine_kernel_pr = bb.data.getVar('MACHINE_KERNEL_PR', d, True)
+
+    if machine_kernel_pr:
+        bb.data.setVar('PR', machine_kernel_pr, d)
 }
 
 inherit kernel-arch deploy