diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-08-04 20:05:36 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2012-08-20 22:50:01 +0200 |
commit | d94c80615c39f707373978b4df5df423d9781051 (patch) | |
tree | dfc66a0a49deef7c88edfc8421d03eb2038a391c /meta-oe/classes | |
parent | b64269b221774fe970382a62ae4b4d1b8e38edac (diff) | |
download | meta-openembedded-d94c80615c39f707373978b4df5df423d9781051.tar.gz |
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>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | 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 000000000..463b64d8e --- /dev/null +++ b/meta-oe/classes/machine_kernel_pr.bbclass | |||
@@ -0,0 +1,8 @@ | |||
1 | python __anonymous () { | ||
2 | |||
3 | machine_kernel_pr = d.getVar('MACHINE_KERNEL_PR', True) | ||
4 | |||
5 | if machine_kernel_pr: | ||
6 | d.setVar('PR', machine_kernel_pr) | ||
7 | } | ||
8 | |||