aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk
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 /recipes-core/openjdk
parent1f310dd3df6526a5c8175bfd378bf5b7d7da9ac5 (diff)
downloadmeta-java-d359ad5ad46c77c183573ce601f03d868eb983bf.tar.gz
meta-java-d359ad5ad46c77c183573ce601f03d868eb983bf.tar.bz2
meta-java-d359ad5ad46c77c183573ce601f03d868eb983bf.zip
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>
Diffstat (limited to 'recipes-core/openjdk')
-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):
elif arch == "powerpc" or arch == "powerpc64":
arch = "powerpc"
else:
- bb.warn("%s does not support %s yet" % (d.getVar('PN', True), arch) );
+ if 'shark' in d.getVar('PACKAGECONFIG').split():
+ bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN', True), arch) );
return arch