All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES
@ 2018-06-09 15:24 liu.ming50
  2018-06-10  8:28 ` Richard Purdie
  2018-06-10 18:45 ` Ming Liu
  0 siblings, 2 replies; 6+ messages in thread
From: liu.ming50 @ 2018-06-09 15:24 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ming Liu

From: Ming Liu <liu.ming50@gmail.com>

This is useful when the users want different variables/tasks when using
multiconfig.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 3b2ef9f..8b2555b 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -731,7 +731,7 @@ DISTRO_NAME ??= "OpenEmbedded"
 # And finally '<foo>_forcevariable' overrides any standard variable, with the highest priority.
 # This works for functions as well, they are really just variables.
 #
-OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:forcevariable"
+OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:${BB_CURRENT_MC}:forcevariable"
 LIBCOVERRIDE ?= ""
 CLASSOVERRIDE ?= "class-target"
 DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES
  2018-06-09 15:24 [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES liu.ming50
@ 2018-06-10  8:28 ` Richard Purdie
  2018-06-10 18:45 ` Ming Liu
  1 sibling, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2018-06-10  8:28 UTC (permalink / raw)
  To: liu.ming50, openembedded-core

On Sat, 2018-06-09 at 17:24 +0200, liu.ming50@gmail.com wrote:
> From: Ming Liu <liu.ming50@gmail.com>
> 
> This is useful when the users want different variables/tasks when
> using
> multiconfig.
> 
> Signed-off-by: Ming Liu <liu.ming50@gmail.com>
> ---
>  meta/conf/bitbake.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 3b2ef9f..8b2555b 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -731,7 +731,7 @@ DISTRO_NAME ??= "OpenEmbedded"
>  # And finally '<foo>_forcevariable' overrides any standard variable,
> with the highest priority.
>  # This works for functions as well, they are really just variables.
>  #
> -OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-
> ${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOV
> ERRIDE}:forcevariable"
> +OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-
> ${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOV
> ERRIDE}:${BB_CURRENT_MC}:forcevariable"
>  LIBCOVERRIDE ?= ""
>  CLASSOVERRIDE ?= "class-target"
>  DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}"

This adds "" in OVERRIDES in the default case. Whilst I think (but am
not 100% sure) we fixed bitbake not to break on such a value, I'm not
convinced adding empty elements to it is a good idea and this did used
to break things.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES
  2018-06-09 15:24 [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES liu.ming50
  2018-06-10  8:28 ` Richard Purdie
@ 2018-06-10 18:45 ` Ming Liu
  2018-06-10 19:28   ` Richard Purdie
  1 sibling, 1 reply; 6+ messages in thread
From: Ming Liu @ 2018-06-10 18:45 UTC (permalink / raw)
  To: OE-core, Richard Purdie; +Cc: Ming Liu

[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]

Hi, Richard:

I saw your comment as follows:

> This adds "" in OVERRIDES in the default case. Whilst I think (but am not
100% sure) we fixed bitbake not to break on such a value, I'm not convinced
adding empty elements to it is a good idea and this did used to break
things.

No, it will add "default" to OVERRIDES in the default case.

//Ming Liu


2018-06-09 17:24 GMT+02:00 <liu.ming50@gmail.com>:

> From: Ming Liu <liu.ming50@gmail.com>
>
> This is useful when the users want different variables/tasks when using
> multiconfig.
>
> Signed-off-by: Ming Liu <liu.ming50@gmail.com>
> ---
>  meta/conf/bitbake.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 3b2ef9f..8b2555b 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -731,7 +731,7 @@ DISTRO_NAME ??= "OpenEmbedded"
>  # And finally '<foo>_forcevariable' overrides any standard variable, with
> the highest priority.
>  # This works for functions as well, they are really just variables.
>  #
> -OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${
> MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:
> forcevariable"
> +OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${
> MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:
> ${BB_CURRENT_MC}:forcevariable"
>  LIBCOVERRIDE ?= ""
>  CLASSOVERRIDE ?= "class-target"
>  DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}"
> --
> 2.7.4
>
>

[-- Attachment #2: Type: text/html, Size: 3421 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES
  2018-06-10 18:45 ` Ming Liu
@ 2018-06-10 19:28   ` Richard Purdie
  2018-06-11  8:51     ` Peter Kjellerstedt
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2018-06-10 19:28 UTC (permalink / raw)
  To: Ming Liu, OE-core

On Sun, 2018-06-10 at 20:45 +0200, Ming Liu wrote:
> I saw your comment as follows:
> 
> > This adds "" in OVERRIDES in the default case. Whilst I think (but
> am not 100% sure) we fixed bitbake not to break on such a value, I'm
> not convinced adding empty elements to it is a good idea and this did
> used to break things.
> 
> No, it will add "default" to OVERRIDES in the default case.

That is even worse, we do not want to add "default" to overrides since
any variable containing that word would then be at risk of weird
breakage.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES
  2018-06-10 19:28   ` Richard Purdie
@ 2018-06-11  8:51     ` Peter Kjellerstedt
  2018-06-11  9:24       ` Ming Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Kjellerstedt @ 2018-06-11  8:51 UTC (permalink / raw)
  To: Richard Purdie, Ming Liu, OE-core

> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> Richard Purdie
> Sent: den 10 juni 2018 21:29
> To: Ming Liu <liu.ming50@gmail.com>; OE-core <openembedded-
> core@lists.openembedded.org>
> Subject: Re: [OE-core] [PATCH] bitbake.conf: add BB_CURRENT_MC to
> OVERRIDES
> 
> On Sun, 2018-06-10 at 20:45 +0200, Ming Liu wrote:
> > I saw your comment as follows:
> >
> > > This adds "" in OVERRIDES in the default case. Whilst I think (but
> > am not 100% sure) we fixed bitbake not to break on such a value, I'm
> > not convinced adding empty elements to it is a good idea and this did
> > used to break things.
> >
> > No, it will add "default" to OVERRIDES in the default case.
> 
> That is even worse, we do not want to add "default" to overrides since
> any variable containing that word would then be at risk of weird
> breakage.
> 
> Cheers,
> 
> Richard

You could add it as ":mc-${BB_CURRENT_MC}:" to OVERRIDES to avoid the 
ambiguity, similar to the pn- and df- prefixes used for recipe names 
and distro features.

//Peter



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES
  2018-06-11  8:51     ` Peter Kjellerstedt
@ 2018-06-11  9:24       ` Ming Liu
  0 siblings, 0 replies; 6+ messages in thread
From: Ming Liu @ 2018-06-11  9:24 UTC (permalink / raw)
  To: Peter Kjellerstedt; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 1379 bytes --]

Arha, good suggestion, will do that in V2.

//Ming Liu

2018-06-11 10:51 GMT+02:00 Peter Kjellerstedt <peter.kjellerstedt@axis.com>:

> > -----Original Message-----
> > From: openembedded-core-bounces@lists.openembedded.org
> > [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> > Richard Purdie
> > Sent: den 10 juni 2018 21:29
> > To: Ming Liu <liu.ming50@gmail.com>; OE-core <openembedded-
> > core@lists.openembedded.org>
> > Subject: Re: [OE-core] [PATCH] bitbake.conf: add BB_CURRENT_MC to
> > OVERRIDES
> >
> > On Sun, 2018-06-10 at 20:45 +0200, Ming Liu wrote:
> > > I saw your comment as follows:
> > >
> > > > This adds "" in OVERRIDES in the default case. Whilst I think (but
> > > am not 100% sure) we fixed bitbake not to break on such a value, I'm
> > > not convinced adding empty elements to it is a good idea and this did
> > > used to break things.
> > >
> > > No, it will add "default" to OVERRIDES in the default case.
> >
> > That is even worse, we do not want to add "default" to overrides since
> > any variable containing that word would then be at risk of weird
> > breakage.
> >
> > Cheers,
> >
> > Richard
>
> You could add it as ":mc-${BB_CURRENT_MC}:" to OVERRIDES to avoid the
> ambiguity, similar to the pn- and df- prefixes used for recipe names
> and distro features.
>
> //Peter
>
>

[-- Attachment #2: Type: text/html, Size: 2262 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-11  9:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-09 15:24 [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES liu.ming50
2018-06-10  8:28 ` Richard Purdie
2018-06-10 18:45 ` Ming Liu
2018-06-10 19:28   ` Richard Purdie
2018-06-11  8:51     ` Peter Kjellerstedt
2018-06-11  9:24       ` Ming Liu

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.