]> code.ossystems Code Review - openembedded-core.git/commitdiff
uboot-config.bbclass: Raise an error for unknown configs
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 11 Oct 2013 15:59:35 +0000 (12:59 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Oct 2013 15:54:25 +0000 (16:54 +0100)
When passing the wrong value for UBOOT_CONFIG it ought to raise an
error otherwise it is quite difficult for user to notice it didn't
behave as expected.

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>
meta/classes/uboot-config.bbclass

index ba01bffa5f29d3740a6939da376db1ee119fb5a5..5068f49bfc16830d7be4b45aa165c3fbec3b96c2 100644 (file)
@@ -51,4 +51,9 @@ python () {
             if len(items) > 1 and items[1]:
                 bb.debug(1, "Appending '%s' to IMAGE_FSTYPES." % items[1])
                 d.appendVar('IMAGE_FSTYPES', ' ' + items[1])
+
+            # Go out as we found a match!
+            break
+    else:
+        raise ValueError("UBOOT_CONFIG %s is not supported" % ubootconfig)
 }