[oe-commits] Otavio Salvador : uboot-config.bbclass: Fix use without IMAGE_FSTYPES appending

git at git.openembedded.org git at git.openembedded.org
Wed Oct 9 22:56:11 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: 0179ad8f0dce30d01c897a3a20c08bbfa9bb0ead
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0179ad8f0dce30d01c897a3a20c08bbfa9bb0ead

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Mon Oct  7 12:15:16 2013 -0300

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 at freescale.com>
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 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 09a0c0f..ba01bff 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])
 }



More information about the Openembedded-commits mailing list