mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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:
parent
a9e835dbe6
commit
1e3a4a08a2
|
@ -824,7 +824,8 @@ def create_recipe(args):
|
||||||
extraoutdir = os.path.join(os.path.dirname(outfile), pn)
|
extraoutdir = os.path.join(os.path.dirname(outfile), pn)
|
||||||
bb.utils.mkdirhier(extraoutdir)
|
bb.utils.mkdirhier(extraoutdir)
|
||||||
for destfn, extrafile in extrafiles.items():
|
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 = lines_before
|
||||||
lines_before = []
|
lines_before = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user