diff options
Diffstat (limited to 'meta/classes/allarch.bbclass')
-rw-r--r-- | meta/classes/allarch.bbclass | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass index 1eebe0bf2e..5bd5c44a27 100644 --- a/meta/classes/allarch.bbclass +++ b/meta/classes/allarch.bbclass | |||
@@ -2,7 +2,18 @@ | |||
2 | # This class is used for architecture independent recipes/data files (usually scripts) | 2 | # This class is used for architecture independent recipes/data files (usually scripts) |
3 | # | 3 | # |
4 | 4 | ||
5 | PACKAGE_ARCH = "all" | 5 | python allarch_package_arch_handler () { |
6 | if bb.data.inherits_class("native", d) or bb.data.inherits_class("nativesdk", d) \ | ||
7 | or bb.data.inherits_class("crosssdk", d): | ||
8 | return | ||
9 | |||
10 | variants = d.getVar("MULTILIB_VARIANTS") | ||
11 | if not variants: | ||
12 | d.setVar("PACKAGE_ARCH", "all" ) | ||
13 | } | ||
14 | |||
15 | addhandler allarch_package_arch_handler | ||
16 | allarch_package_arch_handler[eventmask] = "bb.event.RecipePreFinalise" | ||
6 | 17 | ||
7 | python () { | 18 | python () { |
8 | # Allow this class to be included but overridden - only set | 19 | # Allow this class to be included but overridden - only set |