Skip to contentSkip to conversation

kernel-uimage.bbclass: Dependency on u-boot-mkimage-native for all uImages

PATCH New Reto Schneider 1 participant 1 message Sep 18, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-uimage.bbclass: Dependency on u-boot-mkimage-native for all uImages

From: Reto Schneider <[email protected]>

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.

---
 meta/classes/kernel-uimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-uimage.bbclass +1 -1
index 1d8656e76e..c2de6bb40d 100644
@@ -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)
Signature · 1 line
2.11.0