recipetool: create: Support creating extra files named after the recipe

(From OE-Core rev: ea26eb8e4a00a63700a95c2c848272b170154294)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Kjellerstedt 2025-06-27 14:48:43 +01:00 committed by Richard Purdie
parent a9e835dbe6
commit 1e3a4a08a2

View File

@ -824,7 +824,8 @@ def create_recipe(args):
extraoutdir = os.path.join(os.path.dirname(outfile), pn)
bb.utils.mkdirhier(extraoutdir)
for destfn, extrafile in extrafiles.items():
shutil.move(extrafile, os.path.join(extraoutdir, destfn))
fn = destfn.format(pn=pn, pv=realpv)
shutil.move(extrafile, os.path.join(extraoutdir, fn))
lines = lines_before
lines_before = []