diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2013-10-07 12:15:16 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-11 23:18:14 +0100 |
commit | b833837cac377e7c1c3ff18531b152340b669329 (patch) | |
tree | b43ec3e7a33cfd67c3cfef99f016be3497b10dda /meta/classes/uboot-config.bbclass | |
parent | 69c26e795c117aabfaf313abbfd10e70ede633d9 (diff) | |
download | openembedded-core-contrib-b833837cac377e7c1c3ff18531b152340b669329.tar.gz |
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/uboot-config.bbclass')
-rw-r--r-- | meta/classes/uboot-config.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/uboot-config.bbclass b/meta/classes/uboot-config.bbclass index 09a0c0f7b58..ba01bffa5f2 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]) } |