From d359ad5ad46c77c183573ce601f03d868eb983bf Mon Sep 17 00:00:00 2001 From: Richard Leitner Date: Mon, 13 Aug 2018 16:10:34 +0200 Subject: openjdk-7: clarify a bitbake warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Henning Heinold --- recipes-core/openjdk/openjdk-common.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf