public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: logan.gallois@gmail.com
To: openembedded-core@lists.openembedded.org
Subject: [PATCH v2] oe-setup-build: fix TEMPLATECONF not being applied
Date: Sun,  8 Feb 2026 16:20:13 +0100	[thread overview]
Message-ID: <20260208152013.11582-1-logan.gallois@gmail.com> (raw)
In-Reply-To: <20260208000829.343627-1-logan.gallois@gmail.com>

From: Logan Gallois <logan.gallois@hexagon.com>

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 <logan.gallois@hexagon.com>
---
 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)
     if not no_shell:
         cmd = cmd + " && {}".format(os.environ.get('SHELL','bash'))
     print("Running:", cmd)
-- 
2.43.0



  parent reply	other threads:[~2026-02-08 19:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-08  0:08 [PATCH] oe-setup-build: fix TEMPLATECONF not being applied Logan Gallois
2026-02-08  1:00 ` Patchtest results for " patchtest
2026-02-08 12:17   ` Logan Gallois
2026-02-08 12:37   ` Logan Gallois
2026-02-08  8:33 ` [PATCH v2] " Logan Gallois
2026-02-08 12:42 ` [PATCH] " Logan Gallois
2026-02-08 12:43 ` [PATCH v2] " Logan Gallois
2026-02-08 12:47 ` Logan Gallois
2026-02-08 12:51 ` Logan Gallois
2026-02-08 14:31 ` Logan Gallois
2026-02-08 15:01 ` Logan Gallois
2026-02-08 15:20 ` logan.gallois [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-02-08 14:58 Logan Gallois

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260208152013.11582-1-logan.gallois@gmail.com \
    --to=logan.gallois@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox