LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Recompile kernel after editing some code (https://www.linuxquestions.org/questions/ubuntu-63/recompile-kernel-after-editing-some-code-776559/)

flobadob 12-17-2009 07:57 PM

Recompile kernel after editing some code
 
I have compiled the kernel fine. Works ok but I have now edited a source file fs/ext3/file.c and I cannot get that file to be recompiled. I have tried many variations of make-kpkg but nothing seems to compile that file. I used apt-get to get the source and followed these instructions (old method) for building initially.
https://help.ubuntu.com/community/Kernel/Compile
Any idea how to get this edited file built? Thanks.

affinity 12-18-2009 01:07 PM

I know there are utilities for applying patches to source code, one of them is called 'patch'. That is the first thing I would try, you should get the original file and edit a copy of it then use the patch tool to apply the changes.

flobadob 12-18-2009 01:12 PM

Quote:

Originally Posted by affinity (Post 3797052)
I know there are utilities for applying patches to source code, one of them is called 'patch'. That is the first thing I would try, you should get the original file and edit a copy of it then use the patch tool to apply the changes.

Thanks. I'd have thought that some variation of make-kpkg would work - or maybe the make rules are broken. I have recompiled the whole lot to get my small change recognised for now.


All times are GMT -5. The time now is 12:58 AM.