Hi Khem,

I will try it using quilt and get back.

I don’t know why the patch file turns out empty if both the original and 
updated file are in the same location. It was good when they were in different 
locations. I put them in the same place because of path related confusion which 
was causing build errors.

Thanks,
Monica

From: Khem Raj [mailto:raj.k...@gmail.com]
Sent: Wednesday, June 22, 2016 3:37 PM
To: Rajasekaran, Monica <monica.rajaseka...@us.fujitsu.com>
Cc: Burton, Ross <ross.bur...@intel.com>; yocto@yoctoproject.org
Subject: Re: [yocto] Error applying patch - openvswitch

this patch is empty. Secondly, make sure that patch is generated relative to S

if you were not doing devtool workflow which I recommend to follow. You can 
also go into the ${S}
and generate the patch using quilt.

quilt new your.patch
quilt add ofproto.c
make changes to ofproto.c
quilt refresh
then copy patches/your.patch to metadata area and apply it by adding it to 
SRC_URI

On Jun 22, 2016, at 1:24 PM, Rajasekaran, Monica 
<monica.rajaseka...@us.fujitsu.com<mailto:monica.rajaseka...@us.fujitsu.com>> 
wrote:

Hi Ross,

I have attached the related files.

openvswitch_2.0.0.bb is the recipe file and I have included my patch there as 
file://openvswitch-Firsttt.patch;patch=1 
\<file:///\\openvswitch-Firsttt.patch;patch=1%20\>.

openvswitch-Firsttt.patch is my patch file.

Ofproto.c is the original code.

Ofproto_updated.c is the one with a couple of my changes and print statements.

Thanks,
Monica

From: Burton, Ross [mailto:ross.bur...@intel.com]
Sent: Wednesday, June 22, 2016 3:16 PM
To: Rajasekaran, Monica 
<monica.rajaseka...@us.fujitsu.com<mailto:monica.rajaseka...@us.fujitsu.com>>
Cc: yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
Subject: Re: [yocto] Error applying patch - openvswitch

Without sharing your recipe or the patch, nobody can help.  Check that the 
SRC_URI correctly contains the patch, that it ends with .patch or .diff to be 
applied as a patch automatically, and verify that you actually rebuilt the 
recipe.

Ross

On 22 June 2016 at 21:07, Rajasekaran, Monica 
<monica.rajaseka...@us.fujitsu.com<mailto:monica.rajaseka...@us.fujitsu.com>> 
wrote:
The folders in tmp/work on my source machine don’t have today’s date as last 
modified.

Hmm… I don’t know what might be the mistake with applying the patch.

Thanks,
Monica

From: Burton, Ross [mailto:ross.bur...@intel.com<mailto:ross.bur...@intel.com>]
Sent: Wednesday, June 22, 2016 2:18 PM
To: Rajasekaran, Monica 
<monica.rajaseka...@us.fujitsu.com<mailto:monica.rajaseka...@us.fujitsu.com>>
Cc: yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
Subject: Re: [yocto] Error applying patch - openvswitch


On 22 June 2016 at 19:25, Rajasekaran, Monica 
<monica.rajaseka...@us.fujitsu.com<mailto:monica.rajaseka...@us.fujitsu.com>> 
wrote:
After applying the patches, I brought up my openvswitch which works correctly 
alongside the controller but I don’t see any of the print statements I added to 
view the changes inside. Is there a way to check the updated source code with 
my patch in the target machine ?

Not really, but looking in the work directory (tmp/work) will tell you if it 
got applied.

Ross

<openvswitch_2.0.0.bb><openvswitch-Firsttt.patch><ofproto_updated.c><ofproto.c>--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to