[OE-core] [PATCH] kernel: Permit overriding of KERNEL_IMAGETYPE_FOR_MAKE
Mike Crowe
mac at mcrowe.com
Thu Nov 5 14:47:40 UTC 2015
Commit a1690131691507bbf5853540229b3ad775b836bf removed the ability of
recipes to set KERNEL_IMAGETYPE_FOR_MAKE. This can be fixed by only
setting KERNEL_IMAGETYPE_FOR_MAKE if it doesn't already have a
value. This should hopefully be a good enough approximation to the
behaviour prior to that commit to keep such recipes working.
Signed-off-by: Mike Crowe <mac at mcrowe.com>
---
meta/classes/kernel.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5e8b6cf..8d780c3 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -21,7 +21,8 @@ python __anonymous () {
kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
- d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", re.sub(r'\.gz$', '', kerneltype))
+ if not d.getVar("KERNEL_IMAGETYPE_FOR_MAKE", False):
+ d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", re.sub(r'\.gz$', '', kerneltype))
image = d.getVar('INITRAMFS_IMAGE', True)
if image:
--
2.1.4
More information about the Openembedded-core
mailing list