aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2014-02-26 17:39:31 -0300
committerSaul Wold <sgw@linux.intel.com>2014-02-28 11:32:11 +0200
commitd265216dab8146cda17b9ec6167346749896a505 (patch)
treedcdeb7f33360fb4ad7f4ac4a774777c0b62cce7a /meta
parent209a019b12f2941f8aefac9f192e9cdf691196e3 (diff)
downloadopenembedded-core-contrib-d265216dab8146cda17b9ec6167346749896a505.tar.gz
uboot-config.bbclass: Skip the package if no valid configuration is found
The ValidError case makes parsing fail even if the U-Boot variant is not in use for the specific machine and this is not desired. So instead of raising a parsing error we skip the package. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/uboot-config.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/uboot-config.bbclass b/meta/classes/uboot-config.bbclass
index 5068f49bfc..3e09f17bbe 100644
--- a/meta/classes/uboot-config.bbclass
+++ b/meta/classes/uboot-config.bbclass
@@ -9,7 +9,7 @@
#
# UBOOT_MACHINE = "config"
#
-# Copyright 2013 (C) O.S. Systems Software LTDA.
+# Copyright 2013, 2014 (C) O.S. Systems Software LTDA.
python () {
ubootmachine = d.getVar("UBOOT_MACHINE", True)
@@ -55,5 +55,5 @@ python () {
# Go out as we found a match!
break
else:
- raise ValueError("UBOOT_CONFIG %s is not supported" % ubootconfig)
+ raise bb.parse.SkipPackage("UBOOT_CONFIG %s is not supported" % ubootconfig)
}