kernel: Permit overriding of KERNEL_IMAGETYPE_FOR_MAKE
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
@@ -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
Quoted 8 lines · Mike Crowe
Commit
a1690131691507bbf5853540229b3ad775b836bfremoved the ability of
recipes to setKERNEL_IMAGETYPE_FOR_MAKE. This can be fixed by only settingKERNEL_IMAGETYPE_FOR_MAKEif 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 <[email protected]>
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.
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