Skip to contentSkip to conversation

layer-config: Allow layer add to be disabled on a per target basis

PATCH New Richard Purdie 1 participant 1 message Feb 1, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 layer-config: Allow layer add to be disabled on a per target basis

---
 scripts/layer-config | 3 +++
 1 file changed, 3 insertions(+)
scripts/layer-config +3 -0
index cb16e60..93dc7e3 100755
@@ -57,6 +57,9 @@ for repo in needrepos:
     repo_basename = repo.split('/')[0]
     if repo_basename in repos and "no-layer-add" in repos[repo_basename] and repos[repo_basename]["no-layer-add"]:
         continue
+    nolayeradd = utils.getconfiglist("NOLAYERADD", ourconfig, args.target, None)
+    if repo_basename in nolayeradd:
+        continue
     try:
         bitbakecmd(args.abworkdir, "bitbake-layers add-layer %s" % (args.abworkdir + "/" + repo))
     except subprocess.CalledProcessError as e:
Signature · 1 line
2.40.1