From: Otavio Salvador Date: Fri, 11 Oct 2013 15:59:35 +0000 (-0300) Subject: uboot-config.bbclass: Raise an error for unknown configs X-Git-Tag: 2015-4~4964 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=5110dc988e3b8a1ce8b2309e4ddf17abb3f1cb0c;p=openembedded-core.git uboot-config.bbclass: Raise an error for unknown configs 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 Signed-off-by: Otavio Salvador Signed-off-by: Richard Purdie --- diff --git a/meta/classes/uboot-config.bbclass b/meta/classes/uboot-config.bbclass index ba01bffa5f..5068f49bfc 100644 --- a/meta/classes/uboot-config.bbclass +++ b/meta/classes/uboot-config.bbclass @@ -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) }