diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2015-04-02 22:43:19 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2015-04-02 22:49:27 -0300 |
commit | 24e0921629fd2151da468e103aa19316dfda1f8a (patch) | |
tree | 7f3a17529a75206a2bee821bca0cbecb39672f23 | |
parent | 9694a4e8c76c4c098972d7def2185080d5980fd0 (diff) | |
download | meta-freescale-24e0921629fd2151da468e103aa19316dfda1f8a.tar.gz |
fsl-dynamic-packagearch.bbclass: Fix package skip when MACHINE_SOCARCH is unset
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>
-rw-r--r-- | meta-fsl-arm/classes/fsl-dynamic-packagearch.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-fsl-arm/classes/fsl-dynamic-packagearch.bbclass b/meta-fsl-arm/classes/fsl-dynamic-packagearch.bbclass index 3e1faf439..91a1b14f2 100644 --- a/meta-fsl-arm/classes/fsl-dynamic-packagearch.bbclass +++ b/meta-fsl-arm/classes/fsl-dynamic-packagearch.bbclass | |||
@@ -39,7 +39,7 @@ python __anonymous () { | |||
39 | elif list(machine_socarch_filter & (provides | depends)): | 39 | elif list(machine_socarch_filter & (provides | depends)): |
40 | package_arch = d.getVar("MACHINE_SOCARCH", True) | 40 | package_arch = d.getVar("MACHINE_SOCARCH", True) |
41 | if not package_arch: | 41 | if not package_arch: |
42 | bb.parse.SkipPackage("You must set MACHINE_SOCARCH as MACHINE_SOCARCH_FILTER is set for this SoC.") | 42 | raise bb.parse.SkipPackage("You must set MACHINE_SOCARCH as MACHINE_SOCARCH_FILTER is set for this SoC.") |
43 | 43 | ||
44 | if package_arch: | 44 | if package_arch: |
45 | bb.debug(1, "Use '%s' as package archictecture for '%s'" % (package_arch, PN)) | 45 | bb.debug(1, "Use '%s' as package archictecture for '%s'" % (package_arch, PN)) |