summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-10-07 12:15:16 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-11 23:18:14 +0100
commitb833837cac377e7c1c3ff18531b152340b669329 (patch)
treeb43ec3e7a33cfd67c3cfef99f016be3497b10dda /meta/classes
parent69c26e795c117aabfaf313abbfd10e70ede633d9 (diff)
downloadopenembedded-core-b833837cac377e7c1c3ff18531b152340b669329.tar.gz
openembedded-core-b833837cac377e7c1c3ff18531b152340b669329.tar.bz2
openembedded-core-b833837cac377e7c1c3ff18531b152340b669329.zip
uboot-config.bbclass: Fix use without IMAGE_FSTYPES appending
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>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/uboot-config.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/uboot-config.bbclass b/meta/classes/uboot-config.bbclass
index 09a0c0f7b5..ba01bffa5f 100644
--- a/meta/classes/uboot-config.bbclass
+++ b/meta/classes/uboot-config.bbclass
@@ -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])
}