From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: "Ahsan, Noor" <Noor_Ahsan@mentor.com>
Cc: "openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2
Date: Tue, 27 Oct 2015 17:27:29 +0200 [thread overview]
Message-ID: <20151027152729.GA14663@linux.intel.com> (raw)
In-Reply-To: <365E1805BC95084CBE82381A0B8699940121B4E446@EU-MBX-03.mgc.mentorg.com>
On Tue, Oct 27, 2015 at 02:28:02PM +0000, Ahsan, Noor wrote:
> Hello,
>
> I have identified the issue and sent and RFC on mailing list. One feedback I received was replace dd_cmd = "cp src dst" with dd_cmd = "cp %s %s" % (src, dst) which was and off sight from me. I need more detailed review of it.
Can you point me out where the renaming you've mentioned is happening?
Anyway it would be good if I could reproduce the issue to better
understand it. Can you provide more details about your configuration?
Regards,
Ed
>
> Noor
>
> -----Original Message-----
> From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com]
> Sent: Tuesday, October 27, 2015 6:41 PM
> To: Ahsan, Noor
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2
>
> Hi Noor,
>
> Sorry for delay. I missed your e-mail somehow.
>
> Can you please show your recipe, wks file and the details of your build configuration(MACHINE, bblayers, etc) ?
>
> ---
> Regards,
> Ed
> Date: Thu, 22 Oct 2015 10:14:02 +0000
> From: "Ahsan, Noor" <Noor_Ahsan@mentor.com>
> To: "openembedded-core@lists.openembedded.org"
> <openembedded-core@lists.openembedded.org>
> Subject: Re: [OE-core] [RFC] rawcopy.py: Copy source file in image creation
> build folder
>
>
>
> -----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 <noor_ahsan@mentor.com>
>
> * 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.rename
> is called which rename all the files to name. In that process the original
> file get renamed. When image recipe is rebuilt then wic complains about
> missing file which renamed in previous build.
>
> Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
> ---
> 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/plugins/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 = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \
> (src, dst, source_params['skip'])
> exec_cmd(dd_cmd)
> + else:
> + dst = os.path.join(cr_workdir, source_params['file'])
> + dd_cmd = "cp src dst"
> + exec_cmd(dd_cmd)
>
>
> dd_cmd will be replaced by cp_cmd but I need review of all impact of this so that I can send proper patch.
>
>
> # get the size in the right units for kickstart (kB)
> du_cmd = "du -Lbks %s" % dst
> --
> 1.7.9.5
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
--
Regards,
Ed
next prev parent reply other threads:[~2015-10-27 15:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-27 13:40 U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 Ed Bartosh
2015-10-27 14:28 ` Ahsan, Noor
2015-10-27 15:27 ` Ed Bartosh [this message]
2015-10-27 15:40 ` Ahsan, Noor
2015-10-27 17:41 ` Ed Bartosh
2015-10-29 10:50 ` Ahsan, Noor
2015-10-29 12:21 ` Ed Bartosh
-- strict thread matches above, loose matches on Subject: below --
2015-10-19 15:41 Ahsan, Noor
2015-10-20 10:12 ` Ahsan, Noor
2015-10-21 13:38 ` Ahsan, Noor
2015-10-22 18:10 ` Otavio Salvador
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151027152729.GA14663@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=Noor_Ahsan@mentor.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox