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-14 16:55:21 +0100 |
commit | f93071fb22f8d8b03691a59547fe312be6e7bf8f (patch) | |
tree | e1bcdba2d84849a11d78af576010227e4f406ad4 /meta/classes/uboot-config.bbclass | |
parent | bf19a8617d05f17506dcb7154e19e2aa2b61838b (diff) | |
download | poky-f93071fb22f8d8b03691a59547fe312be6e7bf8f.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>
(From OE-Core rev: b833837cac377e7c1c3ff18531b152340b669329)
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 09a0c0f7b5..ba01bffa5f 100644 --- a/meta/classes/uboot-config.bbclass +++ b/meta/classes/uboot-config.bbclass | |||
@@ -47,7 +47,8 @@ python () { | |||
47 | bb.debug(1, "Setting UBOOT_MACHINE to %s." % items[0]) | 47 | bb.debug(1, "Setting UBOOT_MACHINE to %s." % items[0]) |
48 | d.setVar('UBOOT_MACHINE', items[0]) | 48 | d.setVar('UBOOT_MACHINE', items[0]) |
49 | 49 | ||
50 | if items[1]: | 50 | # IMAGE_FSTYPES appending |
51 | if len(items) > 1 and items[1]: | ||
51 | bb.debug(1, "Appending '%s' to IMAGE_FSTYPES." % items[1]) | 52 | bb.debug(1, "Appending '%s' to IMAGE_FSTYPES." % items[1]) |
52 | d.appendVar('IMAGE_FSTYPES', ' ' + items[1]) | 53 | d.appendVar('IMAGE_FSTYPES', ' ' + items[1]) |
53 | } | 54 | } |