]> code.ossystems Code Review - openembedded-core.git/commitdiff
uboot-config.bbclass: Skip the package if no valid configuration is found
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 26 Feb 2014 20:39:31 +0000 (17:39 -0300)
committerSaul Wold <sgw@linux.intel.com>
Fri, 28 Feb 2014 09:32:11 +0000 (11:32 +0200)
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>
meta/classes/uboot-config.bbclass

index 5068f49bfc16830d7be4b45aa165c3fbec3b96c2..3e09f17bbed46d97522e90b8589b51ec3ebaeaa2 100644 (file)
@@ -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)
 }