[OE-core] [PATCH] kernel-uimage: DEPENDS on u-boot-mkimage-native conditionally

liu.ming50 at gmail.com liu.ming50 at gmail.com
Sun Jul 23 10:11:19 UTC 2017


From: Ming Liu <peter.x.liu at external.atlascopco.com>

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.

Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
---
 meta/classes/kernel-uimage.bbclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/classes/kernel-uimage.bbclass b/meta/classes/kernel-uimage.bbclass
index 7c026ab..94344d9 100644
--- a/meta/classes/kernel-uimage.bbclass
+++ b/meta/classes/kernel-uimage.bbclass
@@ -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




More information about the Openembedded-core mailing list