http://fedoraproject.org/wiki/Docs/CustomKernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear,

I have a suggestion to page

http://fedoraproject.org/wiki/Docs/CustomKernel

related to patch creation for Fedora 15.

First, on preparing the directory structure:

cp -r ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver/linux-2.6.$ver.$arch ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.orig
-cp -al ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.orig ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.new
+cp -a ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.orig ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver.new
+
+cd ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver
+ln -s ../kernel-2.6.$ver$fedver.orig/linux-2.6.$ver.$arch/ a
+ln -s ../kernel-2.6.$ver$fedver.new/linux-2.6.$ver.$arch/ b

Then on patch creation itself:

-cd ~/rpmbuild/BUILD
-diff -uNrp kernel-2.6.$ver$fedver.orig kernel-2.6.$ver$fedver.new > ../SOURCES/linux-2.6-my-new-patch.patch
+cd ~/rpmbuild/BUILD/kernel-2.6.$ver$fedver
+diff -Naurp a b > ../../SOURCES/linux-2.6-my-new-patch.patch


The procedure for patch creation that is on the page did not work for Fedora 15, and I noticed that all patch files uses directory "a" for original code, and directory "b" for new code.

Regards,

Peter


--
Peter Senna Tschudin
peter.senna@xxxxxxxxx
gpg id: 48274C36
-- 
websites mailing list
websites@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/websites

[Index of Archives]     [Fedora Users]     [Linux ARM]     [ARM Kernel]     [Older Fedora Users]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux