Hi, In order to make source code changes to openvswitch present under layer meta-virtualization, I did the following:
- The file I want to change is ofproto.c - copy it into data/users/mrajase/extra and make all the changes there. - Create a patch file between the original file and this updated file (this error is with using "git diff --no-prefix". I also tried by using diff -Naur). So now I have a locally present patch file. - Copy the patch file into repo/poky/meta-virtualization/recipes-networking/openvswitch/files/ - Edit repo/poky/meta-virtualization/recipes-networking/openvswitch/openvswitch_2.0.0.bb and add the line SRC_URI = "file://openvswitch-Firsttt.patch;patch=1 \" - Clean and build the image again. This is my error: ERROR: Command Error: exit status: 1 Output: Applying patch openvswitch-Firsttt.patch can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git data/users/mrajase/l100_label_based_r100poc/repo/poky/build/tmp/work/core2-64-enea-linux/openvswitch/2.0.0-r0/openvswitch-2.0.0/ofproto/ofproto.c data/users/mrajase/extra/ofproto.c |index ea812ad..76c355f 100644 |--- data/users/mrajase/l100_label_based_r100poc/repo/poky/build/tmp/work/core2-64-enea-linux/openvswitch/2.0.0-r0/openvswitch-2.0.0/ofproto/ofproto.c |+++ data/users/mrajase/extra/ofproto.c -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored Patch openvswitch-Firsttt.patch does not apply (enforce with -f) ERROR: Function failed: patch_do_patch ERROR: Logfile of failure stored in: /data/users/mrajase/l100_label_based_r100poc/repo/poky/build/tmp/work/corei7-64-enea-linux/openvswitch/2.0.0-r0/temp/log.do_patch.27838 ERROR: Task 1236 (/data/users/mrajase/l100_label_based_r100poc/repo/poky/meta-virtualization/recipes-networking/openvswitch/openvswitch_2.0.0.bb, do_patch) failed with exit code '1' Any help? Thanks, Monica
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto