[oe-commits] Otavio Salvador : uboot-config.bbclass: Raise an error for unknown configs

git at git.openembedded.org git at git.openembedded.org
Mon Oct 14 15:46:30 UTC 2013


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

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Fri Oct 11 12:59:35 2013 -0300

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 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 |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/meta/classes/uboot-config.bbclass b/meta/classes/uboot-config.bbclass
index ba01bff..5068f49 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)
 }



More information about the Openembedded-commits mailing list