summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-setup
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-29 14:56:11 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-14 11:24:57 +0100
commit9c80f22d37b3ae6acc5051459bf8bba2ddb8c294 (patch)
treeb0ec16eeddb3e50225f61dd90bfc8aa518dd2c0b /bitbake/bin/bitbake-setup
parent4e94ef6f0bac497384d830ba4558f84446bf673f (diff)
downloadpoky-9c80f22d37b3ae6acc5051459bf8bba2ddb8c294.tar.gz
bitbake: bitbake-setup: Allow local registry paths
It is useful for bitbake-setup to support local paths without access through the fetcher so that internal data to the bitbake repository can be used as a default. (Bitbake rev: ec82a6d402a0bec5704310c66c6f4206c75e4fc9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-setup')
-rwxr-xr-xbitbake/bin/bitbake-setup13
1 files changed, 9 insertions, 4 deletions
diff --git a/bitbake/bin/bitbake-setup b/bitbake/bin/bitbake-setup
index d6509500d8..b07bf2eb7c 100755
--- a/bitbake/bin/bitbake-setup
+++ b/bitbake/bin/bitbake-setup
@@ -509,10 +509,15 @@ def do_fetch(fetcher, dir):
509 509
510def update_registry(registry, cachedir, d): 510def update_registry(registry, cachedir, d):
511 registrydir = 'configurations' 511 registrydir = 'configurations'
512 full_registrydir = os.path.join(cachedir, registrydir) 512 if registry.startswith("."):
513 print("Fetching configuration registry\n {}\ninto\n {}".format(registry, full_registrydir)) 513 full_registrydir = os.path.join(os.getcwd(), registry, registrydir)
514 fetcher = bb.fetch.Fetch(["{};destsuffix={}".format(registry, registrydir)], d) 514 elif registry.startswith("/"):
515 do_fetch(fetcher, cachedir) 515 full_registrydir = os.path.join(registry, registrydir)
516 else:
517 full_registrydir = os.path.join(cachedir, registrydir)
518 print("Fetching configuration registry\n {}\ninto\n {}".format(registry, full_registrydir))
519 fetcher = bb.fetch.Fetch(["{};destsuffix={}".format(registry, registrydir)], d)
520 do_fetch(fetcher, cachedir)
516 return full_registrydir 521 return full_registrydir
517 522
518def has_expired(expiry_date): 523def has_expired(expiry_date):