summaryrefslogtreecommitdiff
path: root/meta/classes/uboot-config.bbclass
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-10-11 12:59:35 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-14 16:54:25 +0100
commit5110dc988e3b8a1ce8b2309e4ddf17abb3f1cb0c (patch)
treea7787e7d59c58697c47a3d6f443ff9fe8c827a7d /meta/classes/uboot-config.bbclass
parent64d4c508652bc5d8a0b4c01f0d0813e58d6b39a6 (diff)
downloadopenembedded-core-5110dc988e3b8a1ce8b2309e4ddf17abb3f1cb0c.tar.gz
openembedded-core-5110dc988e3b8a1ce8b2309e4ddf17abb3f1cb0c.tar.bz2
openembedded-core-5110dc988e3b8a1ce8b2309e4ddf17abb3f1cb0c.zip
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 <lauren.post@freescale.com> 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.bbclass5
1 files changed, 5 insertions, 0 deletions
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)
}