<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 23, 2015 at 1:50 PM, Ed Bartosh <span dir="ltr"><<a href="mailto:ed.bartosh@linux.intel.com" target="_blank">ed.bartosh@linux.intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Noor Ahsan <<a href="mailto:noor_ahsan@mentor.com">noor_ahsan@mentor.com</a>><br>
<br>
When a file is given using --sourceparams then wic directly use that file<br>
instead of copying them to build folder. At time of assembling it os.rename<br>
is called which renames all the files to name. In that process the original<br>
file is renamed. When image recipe is rebuilt then wic complains about<br>
missing file which was renamed in previous build.<br>
<br>
[YOCTO #8854]<br>
<br>
Signed-off-by: Ed Bartosh <<a href="mailto:ed.bartosh@linux.intel.com">ed.bartosh@linux.intel.com</a>><br></blockquote><div><br><span class="im"><div><br></div></span><div>Thanks Ed,<br><br></div><div>I've verified this patch resolves the issue.<br></div><div><br>Acked-by: Joshua Lock <<a href="mailto:joshuagloe@gmail.com" target="_blank">joshuagloe@gmail.com</a>></div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
scripts/lib/wic/plugins/source/rawcopy.py | 7 ++++---<br>
1 file changed, 4 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py<br>
index f0691ba..0472f53 100644<br>
--- a/scripts/lib/wic/plugins/source/rawcopy.py<br>
+++ b/scripts/lib/wic/plugins/source/rawcopy.py<br>
@@ -67,13 +67,14 @@ class RawCopyPlugin(SourcePlugin):<br>
return<br>
<br>
src = os.path.join(bootimg_dir, source_params['file'])<br>
- dst = src<br>
+ dst = os.path.join(cr_workdir, source_params['file'])<br>
<br>
if 'skip' in source_params:<br>
- dst = os.path.join(cr_workdir, source_params['file'])<br>
dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \<br>
(src, dst, source_params['skip'])<br>
- exec_cmd(dd_cmd)<br>
+ else:<br>
+ dd_cmd = "cp %s %s" % (src, dst)<br>
+ exec_cmd(dd_cmd)<br>
<br>
# get the size in the right units for kickstart (kB)<br>
du_cmd = "du -Lbks %s" % dst<br>
<span class=""><font color="#888888">--<br>
2.1.4<br>
<br>
--<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</font></span></blockquote></div><br></div></div>