]> code.ossystems Code Review - openembedded-core.git/commit
wic: rawcopy: make source filenames unique
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 30 Jun 2016 16:29:18 +0000 (19:29 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Jul 2016 06:45:01 +0000 (07:45 +0100)
commit43a809bfe99024083b4ab4eb9895b084c9c4fa80
tree209e7e82c0552b3b3537f41ba0fe8042b224f91a
parenta343788b11f6c4f92ae8d2035fe8cb54f922227e
wic: rawcopy: make source filenames unique

Rawcopy plugin copies source files to build folder before using them
to assemble result image. After assembling the image wic renames
source files to <image>.p<partition number>. If the same source file
is used in multiple partitions wic breaks trying to rename file that
doesn't exist.

Added <line number> suffix to the files when copying them to the
build dir. This should make filename unique even if the same source
file is used for multiple partitions.

[YOCTO #9826]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/source/rawcopy.py