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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2024-02-01 12:15:59 +00:00
parent 9d82393ba8
commit 2a4797a143

View File

@ -57,6 +57,9 @@ for repo in needrepos:
repo_basename = repo.split('/')[0] 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"]: if repo_basename in repos and "no-layer-add" in repos[repo_basename] and repos[repo_basename]["no-layer-add"]:
continue continue
nolayeradd = utils.getconfiglist("NOLAYERADD", ourconfig, args.target, None)
if repo_basename in nolayeradd:
continue
try: try:
bitbakecmd(args.abworkdir, "bitbake-layers add-layer %s" % (args.abworkdir + "/" + repo)) bitbakecmd(args.abworkdir, "bitbake-layers add-layer %s" % (args.abworkdir + "/" + repo))
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e: