]> code.ossystems Code Review - meta-freescale.git/commitdiff
fsl-dynamic-packagearch.bbclass: Fix package skip when MACHINE_SOCARCH is unset
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 3 Apr 2015 01:43:19 +0000 (22:43 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 3 Apr 2015 01:49:27 +0000 (22:49 -0300)
The 'bb.parse.SkipPackage' exception was missing a 'raise' call to
proper inform the BitBake tool parsing system about the error, now the
package is properly skipped when necessary.

Change-Id: Ie736186c8e459eea55c1455547e1da8f7111e165
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/classes/fsl-dynamic-packagearch.bbclass

index 3e1faf43940a0169f490b3440075ffb609b324c5..91a1b14f24c4a6f1dbd2458fe15996744c42fe19 100644 (file)
@@ -39,7 +39,7 @@ python __anonymous () {
         elif list(machine_socarch_filter & (provides | depends)):
             package_arch = d.getVar("MACHINE_SOCARCH", True)
             if not package_arch:
-                bb.parse.SkipPackage("You must set MACHINE_SOCARCH as MACHINE_SOCARCH_FILTER is set for this SoC.")
+                raise bb.parse.SkipPackage("You must set MACHINE_SOCARCH as MACHINE_SOCARCH_FILTER is set for this SoC.")
 
         if package_arch:
             bb.debug(1, "Use '%s' as package archictecture for '%s'" % (package_arch, PN))