LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2008, 07:07 AM   #1
smOk3
Member
 
Registered: Feb 2007
Posts: 43

Rep: Reputation: 15
Recompile. Is 'make mrproper' a must? Make just stops!


I have searched the forums and could not find much talking about recompile issues. I have been spending much time in the kernel configuration options trying to get the perfect setup but every new compile I do, I copy the .config file, do a 'make mrproper' and copy the .config file back to /usr/src/linux. After I clean the directory, I 'make modules && make modules_install', after that I issue 'make' to compile the kernel. So my question is: do I have to ' make mrproper', 'make modules && make modules_install' EVERY time I recompile? Or is it unnecessary? I have had problems like the compile would just stop without making the bzImage if I did not run 'make modules && make modules_install' before the compile. Is there some way around this?
 
Old 02-24-2008, 07:35 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
The make mrproper command is only needed the first time one creates the new kernel tree (decompress the tar file).

Your order is wrong, the steps in order are;

make mrproper (use make clean after the first time)
make oldconfig (or copy/use a known good .config file here)
make menuconfig (or xconfig or gconfig here; for tweaking the configuration)
make
make modules_install
make install

Suggested reading; http://www.kernel.org/pub/linux/kern...a_nutshell.pdf
 
Old 02-24-2008, 09:03 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Quote:
Originally Posted by Lenard View Post
The make mrproper command is only needed the first time one creates the new kernel tree (decompress the tar file).
<snip>

Suggested reading; http://www.kernel.org/pub/linux/kern...a_nutshell.pdf
Not totally correct. You run 'make mrproper' anytime you want to bring the tree to a pristine condition. Remove anything stale or not relevant to the new session. Therefore when you create a new tree with the tar of a kernel you will remove any possible threat by issuing 'make mrproper'. Not a bad idea or habit. The 'make clean' is not as aggressive.

Look at 'make' Commands Defined' LQ post. Good!


This link and others can be found at 'Slackware-Links' .
 
Old 02-24-2008, 01:13 PM   #4
smOk3
Member
 
Registered: Feb 2007
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard View Post
The make mrproper command is only needed the first time one creates the new kernel tree (decompress the tar file).

Your order is wrong, the steps in order are;

make mrproper (use make clean after the first time)
make oldconfig (or copy/use a known good .config file here)
make menuconfig (or xconfig or gconfig here; for tweaking the configuration)
make
make modules_install
make install

Suggested reading; http://www.kernel.org/pub/linux/kern...a_nutshell.pdf
Thanks for the quick reply and detailed explanation of the use of make. I am still new to building custom kernels but catching on. Thanks again!
 
Old 02-24-2008, 01:20 PM   #5
smOk3
Member
 
Registered: Feb 2007
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,



Not totally correct. You run 'make mrproper' anytime you want to bring the tree to a pristine condition. Remove anything stale or not relevant to the new session. Therefore when you create a new tree with the tar of a kernel you will remove any possible threat by issuing 'make mrproper'. Not a bad idea or habit. The 'make clean' is not as aggressive.

Look at 'make' Commands Defined' LQ post. Good!


This link and others can be found at 'Slackware-Links' .
onebuck: Thanks for the links!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
make: *** No rule to make target `mrproper'. Stop. dauphinfay Linux - General 7 11-24-2014 08:35 AM
Difference between make mrproper and make clean? hottdogg Slackware 5 03-11-2013 03:31 PM
Use of 'make mrproper' and 'make clean'.... fenice1976 Linux - Software 6 05-25-2004 06:18 PM
'make mrproper' problems Zeebro Linux - Newbie 11 07-06-2003 05:44 AM
'make mrproper' - make bzImage options. liguorir Linux - Software 4 06-26-2003 07:48 PM


All times are GMT -5. The time now is 05:47 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration