* [meta-java][PATCH] openjdk-7: clarify a bitbake warning
@ 2018-08-13 15:20 Richard Leitner
2018-08-13 15:53 ` Henning Heinold
0 siblings, 1 reply; 3+ messages in thread
From: Richard Leitner @ 2018-08-13 15:20 UTC (permalink / raw)
To: openembedded-devel
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>
---
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
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-java][PATCH] openjdk-7: clarify a bitbake warning
2018-08-13 15:20 [meta-java][PATCH] openjdk-7: clarify a bitbake warning Richard Leitner
@ 2018-08-13 15:53 ` Henning Heinold
2018-08-13 20:53 ` Richard Leitner
0 siblings, 1 reply; 3+ messages in thread
From: Henning Heinold @ 2018-08-13 15:53 UTC (permalink / raw)
To: Richard Leitner; +Cc: openembedded-devel
On Mon, Aug 13, 2018 at 05:20:21PM +0200, Richard Leitner wrote:
> 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>
> ---
> 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
>
> --
> 2.11.0
Looks good to me.
Bye Henning
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-java][PATCH] openjdk-7: clarify a bitbake warning
2018-08-13 15:53 ` Henning Heinold
@ 2018-08-13 20:53 ` Richard Leitner
0 siblings, 0 replies; 3+ messages in thread
From: Richard Leitner @ 2018-08-13 20:53 UTC (permalink / raw)
To: Henning Heinold; +Cc: openembedded-devel
On 08/13/2018 05:53 PM, Henning Heinold wrote:
> On Mon, Aug 13, 2018 at 05:20:21PM +0200, Richard Leitner wrote:
>> 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>
>> ---
...
>> --
>> 2.11.0
>
> Looks good to me.
Thanks!
fyi: I "converted" this to an Acked-by for the patch.
>
> Bye Henning
>
regards;Richard.L
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-13 20:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13 15:20 [meta-java][PATCH] openjdk-7: clarify a bitbake warning Richard Leitner
2018-08-13 15:53 ` Henning Heinold
2018-08-13 20:53 ` Richard Leitner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.