Skip to contentSkip to conversation

bitbake.conf: add BB_CURRENT_MC to OVERRIDES

PATCH Superseded [email protected] 3 participants 6 messages Jun 9, 2018 – Jun 11, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake.conf: add BB_CURRENT_MC to OVERRIDES

From: Ming Liu <[email protected]>

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

---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +1 -1
index 3b2ef9f..8b2555b 100644
@@ -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 ''}"
Signature · 1 line
2.7.4
#1 lore raw
Quoted 21 lines · On Sat, 2018-06-09 at 17:24 +0200, [email protected] wrote:

From: Ming Liu <[email protected]>

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

---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +0 -0
index 3b2ef9f..8b2555b 100644
@@ -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-

Quoted 8 lines

${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

author
#2 lore raw
In reply to [email protected]

Hi, Richard:

I saw your comment as follows:

Quoted 1 line

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 <[email protected]>:

Quoted 32 lines

From: Ming Liu <[email protected]>

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

---
 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/bitbake.conf +0 -0
index 3b2ef9f..8b2555b 100644
@@ -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

#3 lore raw
Quoted 8 lines · Ming Liu

I saw your comment as follows:

Quoted 1 line

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

#4 lore raw
Quoted 20 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Purdie
Sent: den 10 juni 2018 21:29
To: Ming Liu <[email protected]>; OE-core <openembedded- [email protected]>
Subject: Re: [OE-core] [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES

Quoted 8 lines · Ming Liu

I saw your comment as follows:

Quoted 1 line

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.

Quoted 7 lines

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

author
#5 lore raw

Arha, good suggestion, will do that in V2.

//Ming Liu

2018-06-11 10:51 GMT+02:00 Peter Kjellerstedt <[email protected]>:

Quoted 35 lines
Quoted 20 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Purdie
Sent: den 10 juni 2018 21:29
To: Ming Liu <[email protected]>; OE-core <openembedded- [email protected]>
Subject: Re: [OE-core] [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES

Quoted 8 lines · Ming Liu

I saw your comment as follows:

Quoted 1 line

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.

Quoted 7 lines

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