summaryrefslogtreecommitdiffstats
path: root/meta/classes/uboot-config.bbclass
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2014-02-26 17:39:31 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-28 14:01:12 +0000
commit4259e6eb647464e5587066ad44a90facd4582aa2 (patch)
tree5e4a5aedecbf631c6043c3ffff39ffdf2e6f35a6 /meta/classes/uboot-config.bbclass
parent8a33c5dd3be1a0f1697cf27291947bc91550050e (diff)
downloadpoky-4259e6eb647464e5587066ad44a90facd4582aa2.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. (From OE-Core rev: d265216dab8146cda17b9ec6167346749896a505) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/uboot-config.bbclass')
-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 @@
9# 9#
10# UBOOT_MACHINE = "config" 10# UBOOT_MACHINE = "config"
11# 11#
12# Copyright 2013 (C) O.S. Systems Software LTDA. 12# Copyright 2013, 2014 (C) O.S. Systems Software LTDA.
13 13
14python () { 14python () {
15 ubootmachine = d.getVar("UBOOT_MACHINE", True) 15 ubootmachine = d.getVar("UBOOT_MACHINE", True)
@@ -55,5 +55,5 @@ python () {
55 # Go out as we found a match! 55 # Go out as we found a match!
56 break 56 break
57 else: 57 else:
58 raise ValueError("UBOOT_CONFIG %s is not supported" % ubootconfig) 58 raise bb.parse.SkipPackage("UBOOT_CONFIG %s is not supported" % ubootconfig)
59} 59}