On Sun, 8 Feb 2026 at 20:12, Logan Gallois via lists.openembedded.org
<[email protected]> wrote:
> When using the new bitbake-setup tool, an oe-template created in a
> custom layer was ignored because the TEMPLATECONF variable was not
> exported to the environment.
>
> Export TEMPLATECONF so that bitbake-setup correctly picks up templates
> provided by external layers.
>
> Signed-off-by: Logan Gallois <[email protected]>
> ---
>  scripts/oe-setup-build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/oe-setup-build b/scripts/oe-setup-build
> index b391f3b9254..0a3146fd503 100755
> --- a/scripts/oe-setup-build
> +++ b/scripts/oe-setup-build
> @@ -101,7 +101,7 @@ def setup_build_env(args):
>              f.write(cmd_base)
>      print("\nRun '. {}' to initialize the build in a current shell 
> session.\n".format(initbuild))
>
> -    cmd = "TEMPLATECONF={} {}".format(template["templatepath"], cmd_base)
> +    cmd = "export TEMPLATECONF={}\n{}".format(template["templatepath"], 
> cmd_base)

I'm afraid the issue needs to be explained or demonstrated further.
TEMPLATECONF is only used by cmd_base, and so is set as its prefix. So
what else needs it in the shell environment?

E.g. why
TEMPLATECONF=... cmd_base
does not work for you but
export TEMPLATECONF= ... && cmd_base
does?

Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#230787): 
https://lists.openembedded.org/g/openembedded-core/message/230787
Mute This Topic: https://lists.openembedded.org/mt/117708238/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to