summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2018-08-13 16:10:34 +0200
committerRichard Leitner <dev@g0hl1n.net>2018-08-13 22:52:21 +0200
commitd359ad5ad46c77c183573ce601f03d868eb983bf (patch)
tree99256127c36aefac6304393a2a53057cad1848bc
parent1f310dd3df6526a5c8175bfd378bf5b7d7da9ac5 (diff)
downloadmeta-java-d359ad5ad46c77c183573ce601f03d868eb983bf.tar.gz
openjdk-7: clarify a bitbake warning
We get a bitbake warning during recipe building complaining about unsupported architectures unconditionally. That check is relevant only for shark builds, so it is quite confusing for non-shark builds. Make the warning conditional on whether shark builds are enabled or not. This is the same patch as the one for openjdk-8 by André Draszik (commit 86c729cb51f880fd5a1ec6485baddfa2bedaa998) Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Acked-by: Henning Heinold <henning@itconsulting-heinold.de>
-rw-r--r--recipes-core/openjdk/openjdk-common.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-core/openjdk/openjdk-common.inc b/recipes-core/openjdk/openjdk-common.inc
index 816b463..c92af40 100644
--- a/recipes-core/openjdk/openjdk-common.inc
+++ b/recipes-core/openjdk/openjdk-common.inc
@@ -55,7 +55,8 @@ def get_llvm_configure_arch(d):
55 elif arch == "powerpc" or arch == "powerpc64": 55 elif arch == "powerpc" or arch == "powerpc64":
56 arch = "powerpc" 56 arch = "powerpc"
57 else: 57 else:
58 bb.warn("%s does not support %s yet" % (d.getVar('PN', True), arch) ); 58 if 'shark' in d.getVar('PACKAGECONFIG').split():
59 bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN', True), arch) );
59 60
60 return arch 61 return arch
61 62