[oe-commits] Khem Raj : machine_kernel_pr.bbclass: provides MACHINE_KERNEL_PR functionality
git at git.openembedded.org
git at git.openembedded.org
Tue Aug 21 07:09:37 UTC 2012
Module: meta-openembedded.git
Branch: master
Commit: d94c80615c39f707373978b4df5df423d9781051
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=d94c80615c39f707373978b4df5df423d9781051
Author: Khem Raj <raj.khem at gmail.com>
Date: Sat Aug 4 20:05:36 2012 +0000
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 at gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-oe/classes/machine_kernel_pr.bbclass | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
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)
+}
+
More information about the Openembedded-commits
mailing list