Hi!
I have kernel 2.6.23.14 (from kernel.org) and it has been customized for embedded system.
(Desktop linux is fedora8 (2.6.23.1-42.fc8))
I want to patch this kernel for MPLS forwarding, so I made a patch file using diff command from
kernel-2.6.23.14-64.fc7.src.rpm and
kernel-2.6.23.14-64.fc7.mpls.1.959.src.rpm .
I followed step :
1. rpm -ivh kernel-2.6.23.14-64.fc7.src.rpm
2. rpmbuild -bp --target i386 /usr/src/redhat/SPECS/kernel-2.6.spec
3. mv /usr/src/redhat/BUILD/kernel-2.6.23/linux-2.6.23.i386 /usr/src/linux-2.6.23.14-64.fc7
4. rpm -ivh kernel-2.6.23.14-64.fc7.mpls.1.959.src.rpm
5. rpmbuild -bp /usr/src/redhat/SPECS/kernel-2.6.spec
6. mv /usr/src/redhat/BUILD/kernel-2.6.23/linux-2.6.23 /usr/src/linux-2.6.23.14-64.fc7.mpls.1.959
7. cd /usr/src
8. diff -uNr linux-2.6.23.14-64.fc7 linux-2.6.23.14-64.fc7.mpls.1.959 > kernel.patch
I looked content of "kernel.patch", but it has about 70000 lines. Too big.
I think this file has some unnecessary parts..
(maybe it has something to do with "....../redhat/" folder, I think)
How can I make a correct .patch file using diff..?
(Also I wonder this correct patch file works fine for my 2.6.23.14 kernel,
but I will not ask that question....... :D)
I will appreciate any reply.
|