]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-uimage.bbclass: Dependency on u-boot-mkimage-native for all uImages
authorReto Schneider <reto.schneider@husqvarnagroup.com>
Tue, 18 Sep 2018 21:54:28 +0000 (23:54 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 22 Sep 2018 18:22:30 +0000 (11:22 -0700)
u-boot-mkimage-native is needed to build any type of uImages, be it
the uImage target itself or for example uImage.lzma. The dependency
however gets only added when at least one of KERNEL_IMAGETYPE and
KERNEL_ALT_IMAGETYPE is exactly uImage. Building uImage.bin and uImage.lzma is
not possible this way.

This patch adds a dependency to u-boot-mkimage-native for all imagetypes which
contains the string uImage.

Signed-off-by: Reto Schneider <code@reto-schneider.ch>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel-uimage.bbclass

index 1d8656e76e3de69369301e3e3a7ecb0ee03276a3..c2de6bb40dc5114b74c790e007eeeab5b54509ad 100644 (file)
@@ -1,7 +1,7 @@
 inherit kernel-uboot
 
 python __anonymous () {
-    if "uImage" in (d.getVar('KERNEL_IMAGETYPES') or "").split():
+    if "uImage" in d.getVar('KERNEL_IMAGETYPES'):
         depends = d.getVar("DEPENDS")
         depends = "%s u-boot-mkimage-native" % depends
         d.setVar("DEPENDS", depends)