diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2021-10-22 17:12:12 +0200 |
---|---|---|
committer | Richard Leitner <richard.leitner@skidata.com> | 2021-11-17 17:22:21 +0100 |
commit | 327a097f5a81eba365a80ee3c52ec885629d42f3 (patch) | |
tree | 978377773bb4b2fa173333a1437cb547d2eb3278 /classes/openjre-test-image.bbclass | |
parent | b30873f02150c1f0bc3d5cc84742577649765de4 (diff) | |
download | meta-java-327a097f5a81eba365a80ee3c52ec885629d42f3.tar.gz |
openjdk-build-helper: fix arm64 build
When trying to build for an arm64 machine, such as qemuarm64, parsing of
the recipes fails with the following messages:
WARNING: /meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb: Exception during build_dependencies for LLVM_CONFIGURE_ARCH
WARNING: /meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb: Error during finalise of /meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
ERROR: ExpansionError during parsing /meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
Traceback (most recent call last):
File "Var <LLVM_CONFIGURE_ARCH>", line 1, in <module>
File "/meta-java/classes/openjdk-build-helper.bbclass", line 86, in openjdk_build_helper_get_llvm_configure_arch(d=<bb.data_smart.DataSmart object at 0x7f08fed017c0>):
else:
> if 'shark' in d.getVar('PACKAGECONFIG').split():
bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN'), arch) );
bb.data_smart.ExpansionError: Failure expanding variable LLVM_CONFIGURE_ARCH, expression was ${@openjdk_build_helper_get_llvm_configure_arch(d)} which triggered exception AttributeError: 'NoneType' object has no attribute 'split'
Using 'bb.utils.contains' solves the problem.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Diffstat (limited to 'classes/openjre-test-image.bbclass')
0 files changed, 0 insertions, 0 deletions