[oe-commits] Otavio Salvador : uboot-config.bbclass: Skip the package if no valid configuration is found

git at git.openembedded.org git at git.openembedded.org
Fri Feb 28 17:56:31 UTC 2014


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

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Wed Feb 26 17:39:31 2014 -0300

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 at ossystems.com.br>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/classes/uboot-config.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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



More information about the Openembedded-commits mailing list