diff mbox series

[1/2] bitbake-setup: ensure that relative local path given on 'init' command line is recorded as an absolute path

Message ID 20260305200937.221484-1-alex.kanavin@gmail.com
State New
Headers show
Series [1/2] bitbake-setup: ensure that relative local path given on 'init' command line is recorded as an absolute path | expand

Commit Message

Alexander Kanavin March 5, 2026, 8:09 p.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

Otherwise status/update operations will fail if executed from a different
directory that the template file was in, as they won't be able to find
the file.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 bin/bitbake-setup | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index bdf134aea..1a42aaa51 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -600,6 +600,7 @@  def obtain_config(top_dir, registry, args, source_overrides, d):
         config_id = args.config[0]
         config_parameters = args.config[1:]
         if os.path.exists(config_id):
+            config_id = os.path.abspath(config_id)
             logger.info("Reading configuration from local file\n    {}".format(config_id))
             upstream_config = {'type':'local',
                                'path':os.path.abspath(config_id),