summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2018-03-05 09:30:53 +0000
committerMaxin B. John <maxin.john@intel.com>2018-03-05 13:55:25 +0200
commit86c729cb51f880fd5a1ec6485baddfa2bedaa998 (patch)
tree75c0bf841ac18a7af62e5cebec095693a07a5e73
parentdd5c43fca8289b8795a9214aee616775e1493109 (diff)
downloadmeta-java-86c729cb51f880fd5a1ec6485baddfa2bedaa998.tar.gz
openjdk-8: 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. Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Maxin B. John <maxin.john@intel.com>
-rw-r--r--recipes-core/openjdk/openjdk-8-common.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index 070ffaa..19f5103 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -181,7 +181,8 @@ def get_llvm_configure_arch(d):
181 elif arch == "powerpc" or arch == "powerpc64": 181 elif arch == "powerpc" or arch == "powerpc64":
182 arch = "powerpc" 182 arch = "powerpc"
183 else: 183 else:
184 bb.warn("%s does not support %s yet" % (d.getVar('PN', True), arch) ); 184 if 'shark' in d.getVar('PACKAGECONFIG').split():
185 bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN', True), arch) );
185 186
186 return arch 187 return arch
187 188