summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2025-06-27 14:48:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-01 08:49:37 +0100
commit1e3a4a08a2c1846c0d992afd398c9a12a4dc9a41 (patch)
tree8d2c9f3d7c25efc69167f001b27cd7b734a2bf88 /scripts/lib/recipetool/create.py
parenta9e835dbe6158753993778e55168bf691815c89c (diff)
downloadpoky-1e3a4a08a2c1846c0d992afd398c9a12a4dc9a41.tar.gz
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>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index edb6467103..b65e59de6a 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -824,7 +824,8 @@ def create_recipe(args):
824 extraoutdir = os.path.join(os.path.dirname(outfile), pn) 824 extraoutdir = os.path.join(os.path.dirname(outfile), pn)
825 bb.utils.mkdirhier(extraoutdir) 825 bb.utils.mkdirhier(extraoutdir)
826 for destfn, extrafile in extrafiles.items(): 826 for destfn, extrafile in extrafiles.items():
827 shutil.move(extrafile, os.path.join(extraoutdir, destfn)) 827 fn = destfn.format(pn=pn, pv=realpv)
828 shutil.move(extrafile, os.path.join(extraoutdir, fn))
828 829
829 lines = lines_before 830 lines = lines_before
830 lines_before = [] 831 lines_before = []