summaryrefslogtreecommitdiffstats
path: root/meta/lib/bblayers
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2024-05-07 13:46:22 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-28 09:38:22 +0100
commit8332fd532f73198cc44c471aef0cdfb945b04431 (patch)
tree7764e43b1063a47f6fc364532d7e7ebb4a1147f0 /meta/lib/bblayers
parentf82c933a4b6de9fb9ee3cc0b56ac8a96be757427 (diff)
downloadpoky-8332fd532f73198cc44c471aef0cdfb945b04431.tar.gz
bblayers/makesetup: include local repository paths in discovered layer repo data
This can be useful when the caller needs to know where the repos actually are on local disk (for example to make a local copy of them or obtain additional information about them). This field however should be removed from the json output in oe-setup-layers plugin, as it is host-specific and not part of the schema. (From OE-Core rev: ee33ebf6140ad13e401c2cccbb106a22043be356) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/bblayers')
-rw-r--r--meta/lib/bblayers/makesetup.py1
-rw-r--r--meta/lib/bblayers/setupwriters/oe-setup-layers.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/bblayers/makesetup.py b/meta/lib/bblayers/makesetup.py
index 8148b0d9ff..48dc73c288 100644
--- a/meta/lib/bblayers/makesetup.py
+++ b/meta/lib/bblayers/makesetup.py
@@ -76,6 +76,7 @@ class MakeSetupPlugin(LayerPlugin):
76 repos_nopaths[r_nopath] = repos[r] 76 repos_nopaths[r_nopath] = repos[r]
77 r_relpath = os.path.relpath(r, top_path) 77 r_relpath = os.path.relpath(r, top_path)
78 repos_nopaths[r_nopath]['path'] = r_relpath 78 repos_nopaths[r_nopath]['path'] = r_relpath
79 repos_nopaths[r_nopath]['originpath'] = r
79 return repos_nopaths 80 return repos_nopaths
80 81
81 def do_make_setup(self, args): 82 def do_make_setup(self, args):
diff --git a/meta/lib/bblayers/setupwriters/oe-setup-layers.py b/meta/lib/bblayers/setupwriters/oe-setup-layers.py
index 59ca968ff3..56c929471e 100644
--- a/meta/lib/bblayers/setupwriters/oe-setup-layers.py
+++ b/meta/lib/bblayers/setupwriters/oe-setup-layers.py
@@ -85,6 +85,8 @@ class OeSetupLayersWriter():
85 if not os.path.exists(args.destdir): 85 if not os.path.exists(args.destdir):
86 os.makedirs(args.destdir) 86 os.makedirs(args.destdir)
87 repos = parent.make_repo_config(args.destdir) 87 repos = parent.make_repo_config(args.destdir)
88 for r in repos.values():
89 del r['originpath']
88 json = {"version":"1.0","sources":repos} 90 json = {"version":"1.0","sources":repos}
89 if not repos: 91 if not repos:
90 err = "Could not determine layer sources" 92 err = "Could not determine layer sources"