kernel-uimage: DEPENDS on u-boot-mkimage-native conditionally
PATCH 1/1 kernel-uimage: DEPENDS on u-boot-mkimage-native conditionally
From: Ming Liu <[email protected]>
do_uboot_mkimage would not run if KEEPUIMAGE not equal to 'yes', so it does not have to DEPENDS on u-boot-mkimage-native in that case.
--- meta/classes/kernel-uimage.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta/classes/kernel-uimage.bbclass +4 -4
@@ -2,16 +2,16 @@ inherit kernel-uboot python __anonymous () { if "uImage" in (d.getVar('KERNEL_IMAGETYPES') or "").split(): - depends = d.getVar("DEPENDS") - depends = "%s u-boot-mkimage-native" % depends - d.setVar("DEPENDS", depends) - # Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal # to kernel.bbclass . We override the variable here, since we need # to build uImage using the kernel build system if and only if # KEEPUIMAGE == yes. Otherwise, we pack compressed vmlinux into # the uImage . if d.getVar("KEEPUIMAGE") != 'yes': + depends = d.getVar("DEPENDS") + depends = "%s u-boot-mkimage-native" % depends + d.setVar("DEPENDS", depends) + typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE") or "" if "uImage" in typeformake.split(): d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake.replace('uImage', 'vmlinux'))
Signature · 1 line
2.7.4
Quoted 4 lines · On 23 July 2017 at 20:11, <[email protected]> wrote:
From: Ming Liu <[email protected]>
do_uboot_mkimagewould not run if KEEPUIMAGE not equal to 'yes', so it does not have to DEPENDS on u-boot-mkimage-native in that case.
This change breaks KEEPUIMAGE == yes. Where the kernel built uImage make target needs u-boot-mkimage-native. This is a common use case.
| UIMAGE arch/arm/boot/uImage | "mkimage" command not found - U-Boot images will not be built | arch/arm/boot/Makefile:79: recipe for target 'arch/arm/boot/uImage' failed | make[3]: *** [arch/arm/boot/uImage] Error 1 | arch/arm/Makefile:329: recipe for target 'uImage' failed | make[2]: *** [uImage] Error 2
Regards,
Nathan
Quoted 39 lines
Signed-off-by Ming Liu <[email protected]>--- meta/classes/kernel-uimage.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)meta/classes/kernel-uimage.bbclass +4
-5@@ -2,16 +2,16 @@ inherit kernel-uboot python __anonymous () { if "uImage" in (d.getVar('KERNEL_IMAGETYPES') or "").split(): - depends = d.getVar("DEPENDS") - depends = "%s u-boot-mkimage-native" % depends - d.setVar("DEPENDS", depends) - # Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal # to kernel.bbclass . We override the variable here, since we need # to build uImage using the kernel build system if and only if # KEEPUIMAGE == yes. Otherwise, we pack compressed vmlinux into # the uImage . if d.getVar("KEEPUIMAGE") != 'yes': + depends = d.getVar("DEPENDS") + depends = "%s u-boot-mkimage-native" % depends + d.setVar("DEPENDS", depends) + typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE") or "" if "uImage" in typeformake.split(): d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake.replace('uImage', 'vmlinux')) --2.7.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Hi, Nathan:
Yes, you are absolutely right, my previous understanding of KEEPUIMAGE was wrong, thanks for pointing it out, please ignore my patch then.
//Ming Liu
2017-07-23 13:24 GMT+02:00 Nathan Rossi <[email protected]>:
Quoted 63 lines · On 23 July 2017 at 20:11, <[email protected]> wrote:
Quoted 4 lines
From: Ming Liu <[email protected]>
do_uboot_mkimagewould not run if KEEPUIMAGE not equal to 'yes', so it does not have to DEPENDS on u-boot-mkimage-native in that case.This change breaks KEEPUIMAGE == yes. Where the kernel built uImage make target needs u-boot-mkimage-native. This is a common use case.
| UIMAGE arch/arm/boot/uImage | "mkimage" command not found - U-Boot images will not be built | arch/arm/boot/Makefile:79: recipe for target 'arch/arm/boot/uImage' failed | make[3]: *** [arch/arm/boot/uImage] Error 1 | arch/arm/Makefile:329: recipe for target 'uImage' failed | make[2]: *** [uImage] Error 2Regards,
NathanReview
Quoted 7 lines
Signed-off-by Ming Liu <[email protected]>--- meta/classes/kernel-uimage.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)(quoted diff) +0
-0b/meta/classes/kernel-uimage.bbclass
meta/classes/kernel-uimage.bbclass inherit kernel-uboot · line 6
Quoted 13 lines
index 7c026ab..94344d9 100644
meta/classes/kernel-uimage.bbclass +0
-4@@ -2,16 +2,16 @@ inherit kernel-uboot python __anonymous () { if "uImage" in (d.getVar('KERNEL_IMAGETYPES') or "").split(): - depends = d.getVar("DEPENDS") - depends = "%s u-boot-mkimage-native" % depends - d.setVar("DEPENDS", depends) - # Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal # to kernel.bbclass . We override the variable here, since weneed
meta/classes/kernel-uimage.bbclass inherit kernel-uboot
Quoted 11 lines
meta/classes/kernel-uimage.bbclass +4
-0# to build uImage using the kernel build system if and only if # KEEPUIMAGE == yes. Otherwise, we pack compressed vmlinux into # the uImage . if d.getVar("KEEPUIMAGE") != 'yes': + depends = d.getVar("DEPENDS") + depends = "%s u-boot-mkimage-native" % depends + d.setVar("DEPENDS", depends) + typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE") or "" if "uImage" in typeformake.split(): d.setVar('KERNEL_IMAGETYPE_FOR_MAKE',
typeformake.replace('uImage', 'vmlinux'))Quoted 8 lines
--
2.7.4--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core