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 | 685ad952bbbecd04cc2c475da5178d48d53327f5 (patch) | |
tree | 54deba1d07b94d8a8d241421d26690a56421a4e2 /classes/fsl-dynamic-packagearch.bbclass | |
parent | 12b98cb4c068c16caee20c278c262915fc2124c5 (diff) | |
download | meta-fsl-arm-685ad952bbbecd04cc2c475da5178d48d53327f5.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>
Diffstat (limited to 'classes/fsl-dynamic-packagearch.bbclass')
-rw-r--r-- | classes/fsl-dynamic-packagearch.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 () { | |||
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)) |