[meta-freescale] [meta-fsl-arm][PATCH v2 1/2] fsl-dynamic-packagearch.bbclass: Fix package skip when MACHINE_SOCARCH is unset

Otavio Salvador otavio at ossystems.com.br
Thu Apr 2 18:47:51 PDT 2015


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 at ossystems.com.br>
---
 classes/fsl-dynamic-packagearch.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/fsl-dynamic-packagearch.bbclass b/classes/fsl-dynamic-packagearch.bbclass
index 3e1faf4..91a1b14 100644
--- a/classes/fsl-dynamic-packagearch.bbclass
+++ b/classes/fsl-dynamic-packagearch.bbclass
@@ -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))
-- 
2.1.4



More information about the meta-freescale mailing list