[meta-oe,1/8] machine_kernel_pr.bbclass: provides MACHINE_KERNEL_PR functionality

Submitted by Martin Jansa on Aug. 20, 2012, 8:56 p.m. | Patch ID: 34979


Message ID d94c80615c39f707373978b4df5df423d9781051.1345496053.git.Martin.Jansa@gmail.com
State Accepted
Commit d94c80615c39f707373978b4df5df423d9781051
Headers show

Commit Message

Martin Jansa Aug. 20, 2012, 8:56 p.m.
From: Khem Raj <raj.khem@gmail.com>

Diffing with the OE-Core's kernel.bbclass only difference is setting of
machine kernel pr. So lets convert it to a separate class which provides
the added functionality and let everyone use kernel.bbclass from kernel

It needs the dependent layers to inherit this class in addition to

After dependent layers are updated we can remove meta-oe copy of
kernel.bbclass, it leaves up with one less conflict with OE-Core.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
 meta-oe/classes/machine_kernel_pr.bbclass |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/classes/machine_kernel_pr.bbclass

Patch hide | download patch | download mbox

diff --git a/meta-oe/classes/machine_kernel_pr.bbclass b/meta-oe/classes/machine_kernel_pr.bbclass
new file mode 100644
index 0000000..463b64d
--- /dev/null
+++ b/meta-oe/classes/machine_kernel_pr.bbclass
@@ -0,0 +1,8 @@ 
+python __anonymous () {
+    machine_kernel_pr = d.getVar('MACHINE_KERNEL_PR', True)
+    if machine_kernel_pr:
+        d.setVar('PR', machine_kernel_pr)