From b833837cac377e7c1c3ff18531b152340b669329 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 7 Oct 2013 12:15:16 -0300 Subject: 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 Signed-off-by: Otavio Salvador Signed-off-by: Richard Purdie --- meta/classes/uboot-config.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/classes/uboot-config.bbclass') 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]) } -- cgit 1.2.3-korg