]> code.ossystems Code Review - openembedded-core.git/commitdiff
uboot-config.bbclass: Fix use without IMAGE_FSTYPES appending
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 7 Oct 2013 15:15:16 +0000 (12:15 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Oct 2013 22:18:14 +0000 (23:18 +0100)
Before checking if the image is a valid value, we need to check if the
list of items is big enough or we will raise an exception.

Reported-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/uboot-config.bbclass

index 09a0c0f7b581cab46053a2700290cf06fa54d00c..ba01bffa5f29d3740a6939da376db1ee119fb5a5 100644 (file)
@@ -47,7 +47,8 @@ python () {
             bb.debug(1, "Setting UBOOT_MACHINE to %s." % items[0])
             d.setVar('UBOOT_MACHINE', items[0])
 
-            if items[1]:
+            # IMAGE_FSTYPES appending
+            if len(items) > 1 and items[1]:
                 bb.debug(1, "Appending '%s' to IMAGE_FSTYPES." % items[1])
                 d.appendVar('IMAGE_FSTYPES', ' ' + items[1])
 }