From: Khem Raj <[email protected]> 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 <[email protected]> Signed-off-by: Martin Jansa <[email protected]> --- 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 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) +} + -- 1.7.8.6 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
