Skip to contentSkip to conversation

kernel: Permit overriding of KERNEL_IMAGETYPE_FOR_MAKE

PATCH Superseded Mike Crowe 3 participants 3 messages Nov 5, 2015 – Oct 11, 2016

lore
Share & tools
lore

Mike Crowe

author
#0 lore raw

PATCH 1/1 kernel: Permit overriding of KERNEL_IMAGETYPE_FOR_MAKE

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.

---
 meta/classes/kernel.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/kernel.bbclass +2 -1
index 5e8b6cf..8d780c3 100644
@@ -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:
Signature · 1 line
2.1.4
#1 lore raw
Quoted 8 lines · Mike Crowe

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.

Does anybody know why this patch was not merged?  I couldn't find any comments on the list.

(It needs adjusting slightly to apply against current master due to other changes to kernel.bbclass in the meantime.)

thanks

p.

#2 lore raw
Quoted 6 lines · Phil Blundell

Does anybody know why this patch was not merged? I couldn't find any comments on the list.

(It needs adjusting slightly to apply against current master due to other changes to kernel.bbclass in the meantime.)

Slipped through the crack most likely if there were no comments. Cookie for anyone who rebase and tests that it works!

Ross