LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-17-2009, 07:57 PM   #1
flobadob
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Rep: Reputation: 0
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.
 
Old 12-18-2009, 01:07 PM   #2
affinity
Member
 
Registered: Nov 2009
Distribution: Slackware64
Posts: 132

Rep: Reputation: 20
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.
 
Old 12-18-2009, 01:12 PM   #3
flobadob
LQ Newbie
 
Registered: Aug 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by affinity View Post
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.
 
  


Reply

Tags
compile, kernel



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing Maelstrom source code dave247 Linux - Software 12 10-26-2010 09:56 AM
Opening & Editing the Source Code rockershive Linux - Kernel 2 08-03-2007 10:52 PM
Recompile RHEL 32-bit code on AMD's Opteron? rmhaddad Linux - General 5 03-21-2005 01:34 AM
code editing software stefane321 Linux - Software 10 12-19-2004 05:18 PM
Editing buttons (quote, code etc.) add the code to the end vharishankar LQ Suggestions & Feedback 2 09-13-2004 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration