Skip to contentSkip to conversation

uboot-config.bbclass: Skip the package if no valid configuration is found

PATCH New Otavio Salvador 1 participant 1 message Feb 26, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
This error has been found while debugging a patchset which we are reviewing in meta-fsl-arm.

This fix couĺd be considered for backporting into Dora as it does fix a design error done by me when coding the class.

 meta/classes/uboot-config.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/uboot-config.bbclass +2 -2
index 5068f49..3e09f17 100644
@@ -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)
 }
Signature · 1 line
1.9.0