bitbake.conf: add BB_CURRENT_MC to OVERRIDES
PATCH v2 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}:mc-${BB_CURRENT_MC}:forcevariable" LIBCOVERRIDE ?= "" CLASSOVERRIDE ?= "class-target" DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}"
Signature · 1 line
2.7.4
Quoted 4 lines · On Mon, Jun 11, 2018 at 4:34 AM, <[email protected]> wrote:
From: Ming Liu <[email protected]>
This is useful when the users want different variables/tasks when using multiconfig.
Isn't the idea of multiconfig to select between configurations which already fully define all necessary over-rides?
If a particular multiconfig build needs a custom over-ride then the multiconfig can append to OVERRIDES (or MACHINEOVERRIDES etc, as appropriate) directly.
ie to avoid confusion isn't it good if building with a multiconfig enabled is always equivalent to building with the contents of the multiconfig file copied directly in local.conf?
Quoted 26 lines
Signed-off-by Ming Liu <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/conf/bitbake.conf +1
-2@@ -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}:mc-${BB_CURRENT_MC}:forcevariable" LIBCOVERRIDE ?= "" CLASSOVERRIDE ?= "class-target" DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}" --2.7.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Hi, Andre:
The reason for needing this multiconfig to be in OVERRIDES, for me, is the scenario that I have one recipe but some variables/tasks in it are different for multiconfig, for instance:
do_install-mc-default () {}
do_install-mc-foo() {}
and I do not want split them into several almost same recipes with only one task different.
//Ming Liu
2018-06-12 1:15 GMT+02:00 Andre McCurdy <[email protected]>:
Quoted 49 lines · On Mon, Jun 11, 2018 at 4:34 AM, <[email protected]> wrote:
Quoted 4 lines
From: Ming Liu <[email protected]>
This is useful when the users want different variables/tasks when using multiconfig.
Isn't the idea of multiconfig to select between configurations which already fully define all necessary over-rides?
If a particular multiconfig build needs a custom over-ride then the multiconfig can append to OVERRIDES (or MACHINEOVERRIDES etc, as appropriate) directly.
ie to avoid confusion isn't it good if building with a multiconfig enabled is always equivalent to building with the contents of the multiconfig file copied directly in local.conf?
meta/conf/bitbake.conf DISTRO_NAME ??= "OpenEmbedded" · line 731
Quoted 11 lines
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.
meta/conf/bitbake.conf DISTRO_NAME ??= "OpenEmbedded"
Quoted 3 lines
meta/conf/bitbake.conf +0
-1# This works for functions as well, they are really just variables. # -OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:
forcevariable"meta/conf/bitbake.conf DISTRO_NAME ??= "OpenEmbedded" · line 734
Quoted 1 line
meta/conf/bitbake.conf +1
-0+OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:
mc-${BB_CURRENT_MC}:forcevariable"Quoted 11 lines
meta/conf/bitbake.conf +0
-1LIBCOVERRIDE ?= "" CLASSOVERRIDE ?= "class-target" DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}" --2.7.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 11 lines · Ming Liu
Hi, Andre:
The reason for needing this multiconfig to be in OVERRIDES, for me, is the scenario that I have one recipe but some variables/tasks in it are different for multiconfig, for instance:do_install-mc-default () {}
do_install-mc-foo() {}
and I do not want split them into several almost same recipes with only one task different.
Yes, that's clear. But the question is whether you can make the over-rides you need self contained within the multiconfig config file?
e.g. to enable an over-ride when you build with multiconfig foo, add:
OVERRIDES .= ":mc-foo"
to foo.conf
If it works, then it gives you more flexibility - you can pick your own over-ride naming, define multiple over-rides per multiconfig, etc.
Quoted 52 lines
//Ming Liu
2018-06-12 1:15 GMT+02:00 Andre McCurdy <[email protected]>:
Quoted 47 lines · On Mon, Jun 11, 2018 at 4:34 AM, <[email protected]> wrote:
Quoted 4 lines
From: Ming Liu <[email protected]>
This is useful when the users want different variables/tasks when using multiconfig.
Isn't the idea of multiconfig to select between configurations which already fully define all necessary over-rides?
If a particular multiconfig build needs a custom over-ride then the multiconfig can append to OVERRIDES (or MACHINEOVERRIDES etc, as appropriate) directly.
ie to avoid confusion isn't it good if building with a multiconfig enabled is always equivalent to building with the contents of the multiconfig file copied directly in local.conf?
Quoted 29 lines
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-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:forcevariable" +OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:mc-${BB_CURRENT_MC}:forcevariable"
LIBCOVERRIDE ?= ""
CLASSOVERRIDE ?= "class-target"
DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}"
--
2.7.4--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Yes, that is true, but then I will need have a mc-default override set in local.conf any way, since I need distinguish the build for all multiconfigs, that makes me think it'd better to have a single mc-${BB_CURRENT_MC} set in OVERRIDES.
//Ming Liu
2018-06-12 19:49 GMT+02:00 Andre McCurdy <[email protected]>:
Quoted 86 lines · Ming Liu
Quoted 2 lines
Hi, Andre:
The reason for needing this multiconfig to be in OVERRIDES, for me, isthe
Quoted 1 line
scenario that I have one recipe but some variables/tasks in it are
different
Quoted 7 lines
for multiconfig, for instance:
do_install-mc-default () {}
do_install-mc-foo() {}
and I do not want split them into several almost same recipes with only
one
Quoted 1 line
task different.
Yes, that's clear. But the question is whether you can make the over-rides you need self contained within the multiconfig config file?
e.g. to enable an over-ride when you build with multiconfig foo, add:
OVERRIDES .= ":mc-foo"
to foo.conf
If it works, then it gives you more flexibility - you can pick your own over-ride naming, define multiple over-rides per multiconfig, etc.
Quoted 8 lines
//Ming Liu
2018-06-12 1:15 GMT+02:00 Andre McCurdy <[email protected]>:
Quoted 5 lines · On Mon, Jun 11, 2018 at 4:34 AM, <[email protected]> wrote:
Quoted 3 lines
From: Ming Liu <[email protected]>
This is useful when the users want different variables/tasks when
using
Quoted 18 lines
Quoted 18 lines
Quoted 1 line
multiconfig.
Isn't the idea of multiconfig to select between configurations which already fully define all necessary over-rides?
If a particular multiconfig build needs a custom over-ride then the multiconfig can append to OVERRIDES (or MACHINEOVERRIDES etc, as appropriate) directly.
ie to avoid confusion isn't it good if building with a multiconfig enabled is always equivalent to building with the contents of the multiconfig file copied directly in local.conf?
Quoted 5 lines
Signed-off-by Ming Liu <[email protected]>--- meta/conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
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-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:
forcevariable"Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
+OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:pn-${PN}:${
MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}${LIBCOVERRIDE}:
mc-${BB_CURRENT_MC}:forcevariable"Quoted 13 lines
Quoted 11 lines
Quoted 11 lines
LIBCOVERRIDE ?= ""
CLASSOVERRIDE ?= "class-target" DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}"
--
2.7.4--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core