bitbake.conf: add BB_CURRENT_MC to OVERRIDES
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
@@ -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
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.Signed-off-by Ming Liu <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/conf/bitbake.conf +0
-0@@ -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
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.
Signed-off-by Ming Liu <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/conf/bitbake.conf +0
-0@@ -731,7 +731,7 @@ DISTRO_NAME ??= "OpenEmbedded" # And finally '<foo>_forcevariable' overrides any standard variable, withthe 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
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
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: addBB_CURRENT_MCto OVERRIDESQuoted 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
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: addBB_CURRENT_MCto OVERRIDESQuoted 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