diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-30 19:29:18 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-21 07:47:52 +0100 |
commit | 2d5b282957680828dab15dc00c33056e6011f4e0 (patch) | |
tree | 5247c16dfead66cac211fd178cdd025715d92df0 /scripts/lib | |
parent | 788d6fb30d1527ba021acea39a96261ba700945d (diff) | |
download | poky-2d5b282957680828dab15dc00c33056e6011f4e0.tar.gz |
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]
(From OE-Core rev: 43a809bfe99024083b4ab4eb9895b084c9c4fa80)
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>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/plugins/source/rawcopy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py index ba014b0714..e0b11f95ad 100644 --- a/scripts/lib/wic/plugins/source/rawcopy.py +++ b/scripts/lib/wic/plugins/source/rawcopy.py | |||
@@ -68,7 +68,7 @@ class RawCopyPlugin(SourcePlugin): | |||
68 | return | 68 | return |
69 | 69 | ||
70 | src = os.path.join(bootimg_dir, source_params['file']) | 70 | src = os.path.join(bootimg_dir, source_params['file']) |
71 | dst = os.path.join(cr_workdir, source_params['file']) | 71 | dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno)) |
72 | 72 | ||
73 | if 'skip' in source_params: | 73 | if 'skip' in source_params: |
74 | sparse_copy(src, dst, skip=source_params['skip']) | 74 | sparse_copy(src, dst, skip=source_params['skip']) |