diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2013-10-11 12:59:35 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-14 16:55:23 +0100 |
commit | dae0c677d1e24aee5b9a79710b1fe0899b5ac658 (patch) | |
tree | 465508bf936f8538af692505a6efec10e3a101a1 /meta/classes | |
parent | aeb7909cc4d9fb9443b22a31e6d72ae32424695c (diff) | |
download | poky-dae0c677d1e24aee5b9a79710b1fe0899b5ac658.tar.gz |
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>
(From OE-Core rev: 5110dc988e3b8a1ce8b2309e4ddf17abb3f1cb0c)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | 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 ba01bffa5f..5068f49bfc 100644 --- a/meta/classes/uboot-config.bbclass +++ b/meta/classes/uboot-config.bbclass | |||
@@ -51,4 +51,9 @@ python () { | |||
51 | if len(items) > 1 and items[1]: | 51 | if len(items) > 1 and items[1]: |
52 | bb.debug(1, "Appending '%s' to IMAGE_FSTYPES." % items[1]) | 52 | bb.debug(1, "Appending '%s' to IMAGE_FSTYPES." % items[1]) |
53 | d.appendVar('IMAGE_FSTYPES', ' ' + items[1]) | 53 | d.appendVar('IMAGE_FSTYPES', ' ' + items[1]) |
54 | |||
55 | # Go out as we found a match! | ||
56 | break | ||
57 | else: | ||
58 | raise ValueError("UBOOT_CONFIG %s is not supported" % ubootconfig) | ||
54 | } | 59 | } |