[OE-core] [PATCH] bitbake.conf: add BB_CURRENT_MC to OVERRIDES
Richard Purdie
richard.purdie at linuxfoundation.org
Sun Jun 10 08:28:40 UTC 2018
On Sat, 2018-06-09 at 17:24 +0200, liu.ming50 at gmail.com wrote:
> From: Ming Liu <liu.ming50 at gmail.com>
>
> This is useful when the users want different variables/tasks when
> using
> multiconfig.
>
> Signed-off-by: Ming Liu <liu.ming50 at 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
More information about the Openembedded-core
mailing list