machine_kernel_pr.bbclass: provides MACHINE_KERNEL_PR functionality

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
kernel.bbclass.

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>
This commit is contained in:
Khem Raj
2012-08-04 20:05:36 +00:00
committed by Martin Jansa
parent b64269b221
commit d94c80615c
@@ -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)
}