[From nobody Tue Oct 27 14:28:09 2015
Received: from SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) by
	SVR-IES-FEM-05.mgc.mentorg.com (137.202.0.112) with Microsoft SMTP
	Server (TLS) id 14.3.224.2; Thu, 22 Oct 2015 11:14:45 +0100
Received: from relay1.mentorg.com (147.34.91.1) by
	SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP
	Server (TLS) id 14.3.224.2; Thu, 22 Oct 2015 03:14:42 -0700
Received: from esa1.mentor.iphmx.com ([68.232.129.153])	by relay1.mentorg.com
	with esmtps (TLSv1:DHE-RSA-AES256-SHA:256)	id 1ZpCtN-0005m2-KY from
	openembedded-core-bounces@lists.openembedded.org for
	Noor_ahsan@mentor.com; Thu, 22 Oct 2015 03:14:41 -0700
Received: from mail.openembedded.org ([140.211.169.62])  by
	esa1.mentor.iphmx.com with ESMTP; 22 Oct 2015 02:14:40 -0800
Received: from layers.openembedded.org (localhost [127.0.0.1])	by
	mail.openembedded.org (Postfix) with ESMTP id 87B3075D22;
	Thu, 22 Oct 2015 10:14:24 +0000 (UTC)
Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131])	by
	mail.openembedded.org (Postfix) with ESMTP id C7D7F770F3	for
	&lt;openembedded-core@lists.openembedded.org&gt;;
	Thu, 22 Oct 2015 10:14:15 +0000 (UTC)
Received: from nat-ies.mentorg.com ([192.94.31.2]
	helo=SVR-IES-FEM-04.mgc.mentorg.com)	by relay1.mentorg.com with esmtp
	id 1ZpCsw-0005fv-UL from Noor_Ahsan@mentor.com ;
	Thu, 22 Oct 2015 03:14:15 -0700
Received: from EU-MBX-01.mgc.mentorg.com ([169.254.1.18]) by
	SVR-IES-FEM-04.mgc.mentorg.com ([137.202.0.110]) with mapi
	id	14.03.0224.002; Thu, 22 Oct 2015 11:14:02 +0100
From: &quot;Ahsan, Noor&quot; &lt;Noor_Ahsan@mentor.com&gt;
To: &quot;openembedded-core@lists.openembedded.org&quot;
	&lt;openembedded-core@lists.openembedded.org&gt;
Subject: Re: [OE-core] [RFC] rawcopy.py: Copy source file in image creation
	build folder
Thread-Topic: [RFC] rawcopy.py: Copy source file in image creation build folder
Thread-Index: AQHRDBpMmQJRJH2xI0egLkJjuEGttZ53TCyA
Sender: &quot;openembedded-core-bounces@lists.openembedded.org&quot;
	&lt;openembedded-core-bounces@lists.openembedded.org&gt;
Date: Thu, 22 Oct 2015 10:14:02 +0000
Message-ID: &lt;365E1805BC95084CBE82381A0B86999401095FB9D1@EU-MBX-01.mgc.mentorg.com&gt;
References: &lt;1445443468-8394-1-git-send-email-noor_ahsan@mentor.com&gt;
List-Help: &lt;mailto:openembedded-core-request@lists.openembedded.org?subject=help&gt;
List-Subscribe: &lt;http://lists.openembedded.org/mailman/listinfo/openembedded-core&gt;,
	&lt;mailto:openembedded-core-request@lists.openembedded.org?subject=subscribe&gt;
List-Unsubscribe: &lt;http://lists.openembedded.org/mailman/options/openembedded-core&gt;,
	&lt;mailto:openembedded-core-request@lists.openembedded.org?subject=unsubscribe&gt;
In-Reply-To: &lt;1445443468-8394-1-git-send-email-noor_ahsan@mentor.com&gt;
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthMechanism: 10
X-MS-Exchange-Organization-AuthSource: SVR-ORW-FEM-06.mgc.mentorg.com
X-MS-Has-Attach: 
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator: 
list-post: &lt;mailto:openembedded-core@lists.openembedded.org&gt;
list-archive: &lt;http://lists.openembedded.org/pipermail/openembedded-core/&gt;
errors-to: openembedded-core-bounces@lists.openembedded.org
list-id: Patches and discussions about the oe-core layer
	&lt;openembedded-core.lists.openembedded.org&gt;
x-mailman-version: 2.1.12
x-beenthere: openembedded-core@lists.openembedded.org
x-ironport-av: E=Sophos;i=&quot;5.15,747,1432627200&quot;;    d=&quot;scan'208&quot;;a=&quot;2260884&quot;
Content-Type: text/plain; charset=&quot;us-ascii&quot;
Content-ID: &lt;D8C20A934FB5F84D88CC7D9B78268075@mentor.com&gt;
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0



-----Original Message-----
From: Ahsan, Noor
Sent: Wednesday, October 21, 2015 9:04 PM
To: openembedded-core@lists.openembedded.org
Cc: Ahsan, Noor
Subject: [RFC] rawcopy.py: Copy source file in image creation build folder

From: Noor &lt;noor_ahsan@mentor.com&gt;

* When a file is given using --sourceparams then wic directly use that file
  instead of copying them to build folder. At time of assmebling it os.rena=
me
  is called which rename all the files to name. In that process the origina=
l
  file get renamed. When image recipe is rebuilt then wic complains about
  missing file which renamed in previous build.

Signed-off-by: Noor Ahsan &lt;noor_ahsan@mentor.com&gt;
---
 scripts/lib/wic/plugins/source/rawcopy.py |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/pl=
ugins/source/rawcopy.py
index f0691ba..f17da27 100644
--- a/scripts/lib/wic/plugins/source/rawcopy.py
+++ b/scripts/lib/wic/plugins/source/rawcopy.py
@@ -74,6 +74,10 @@ class RawCopyPlugin(SourcePlugin):
             dd_cmd =3D &quot;dd if=3D%s of=3D%s ibs=3D%s skip=3D1 conv=3Dnotrun=
c&quot; % \
                     (src, dst, source_params['skip'])
             exec_cmd(dd_cmd)
+        else:
+            dst =3D os.path.join(cr_workdir, source_params['file'])
+            dd_cmd =3D &quot;cp src dst&quot;
+            exec_cmd(dd_cmd)


dd_cmd will be replaced by cp_cmd but I need review of all impact of this s=
o that I can send proper patch.


         # get the size in the right units for kickstart (kB)
         du_cmd =3D &quot;du -Lbks %s&quot; % dst
--
1.7.9.5

--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
]