diff options
Diffstat (limited to 'classes/java-library.bbclass')
-rw-r--r-- | classes/java-library.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass index ce1cd28..e0159ba 100644 --- a/classes/java-library.bbclass +++ b/classes/java-library.bbclass | |||
@@ -10,9 +10,13 @@ | |||
10 | # | 10 | # |
11 | # package archs are set to all, if the recipe builds also packages which | 11 | # package archs are set to all, if the recipe builds also packages which |
12 | # can not be used for all archs, then set the PACKAGE_ARCH of that package | 12 | # can not be used for all archs, then set the PACKAGE_ARCH of that package |
13 | # manually, see rxtx_xx.bb for an example. | 13 | # manually *before* inheriting the class, see rxtx_xx.bb for an example. |
14 | 14 | ||
15 | inherit java allarch | 15 | inherit java |
16 | PACKAGE_ARCH ?= "all" | ||
17 | # Fully expanded - so it applies the overrides as well | ||
18 | PACKAGE_ARCH_EXPANDED := "${PACKAGE_ARCH}" | ||
19 | inherit ${@oe.utils.ifelse(d.getVar('PACKAGE_ARCH_EXPANDED') == 'all', 'allarch', '')} | ||
16 | 20 | ||
17 | # use java_stage for native packages | 21 | # use java_stage for native packages |
18 | JAVA_NATIVE_STAGE_INSTALL = "1" | 22 | JAVA_NATIVE_STAGE_INSTALL = "1" |