Skip to contentSkip to conversation

oe-setup-build: fix TEMPLATECONF not being applied

PATCH Superseded Logan Gallois 1 participant 1 message Feb 8

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oe-setup-build: fix TEMPLATECONF not being applied

From: Logan Gallois <[email protected]>

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.

---
 scripts/oe-setup-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/oe-setup-build +1 -1
index b391f3b9254..0a3146fd503 100755
@@ -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)
     if not no_shell:
         cmd = cmd + " && {}".format(os.environ.get('SHELL','bash'))
     print("Running:", cmd)
Signature · 1 line
2.43.0