LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-17-2007, 12:32 AM   #1
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Smile What commands does "make all" cover?


Hi, I'm in the middle of re-compiling my kernel (rt) for audio recording and came across a note I left for myself, make all.

Anybody tell me what this command covers.
eg. make clean, make bzImage, make modules, etc.

Thanks in advance, Glenn
 
Old 11-17-2007, 02:07 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657

Original Poster
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Thumbs up Resolved

It's OK! I got it, I think.

After make all, I did, make modules_install, make install.

And here I am.

Thanks anyway.

May just help someone else.

cheers, Glenn

Last edited by GlennsPref; 11-17-2007 at 02:14 AM. Reason: Resolved
 
Old 11-17-2007, 03:05 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If you ever cared to read the README plaintext file that comes along the sources, you wouldn't have asked - it's all covered there. I recall there used to be a "make all" target, but nowadays if I'm right it's just "make" (no "all"). Referring to the README file of 2.6.23.1:

Quote:
COMPILING the kernel:

- Make sure you have at least gcc 3.2 available.
For more information, refer to Documentation/Changes.

Please note that you can still run a.out user programs with this kernel.

- Do a "make" to create a compressed kernel image. It is also
possible to do "make install" if you have lilo installed to suit the
kernel makefiles, but you may want to check your particular lilo setup first.

To do the actual install you have to be root, but none of the normal
build should require that. Don't take the name of root in vain.

- If you configured any of the parts of the kernel as `modules', you
will also have to do "make modules_install".
As you see, no "make all" there. But like I said, I think the older kernels had that option (along with the other 'make's). Anyway when compiling something from source you haven't written yourself (maybe even then), always read the documentation first to get a picture of how it should be done. Especially for a kernel, which is more or less crucial to get your system up, there is no sane reason to check out at least the most common of documentation files, README (and/or INSTALL), to see what should be done. It really doesn't take that much time, and because things can change (you don't compile Linux kernel nowadays the way you used to do it with version 1) it's a good idea to have your information up to date.

Read the README and/or INSTALL files always, and any other documentation present.
 
Old 11-17-2007, 03:19 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
...and besides that, in a more generic way, you can always run 'make -n all', which will run make but only show what it would do, not actually do things.
 
Old 11-17-2007, 10:28 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657

Original Poster
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Well, thank you very much.

I have been trying to install 2.6.2x.x versions for the last 6 months and none of them would recognise my sata controllers.

I felt I had read the same readme that comes with every package and did not notice ANY difference between them.

But now you have told me, I will recheck the documents.

Elitism will not prevail, and to RTFM (when it is upto date) is what I always do, at first. Then I ask.

Thank you for your responses, I do appreciate it.

Regards, Glenn
 
Old 11-18-2007, 10:59 AM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by b0uncer View Post
Read the README and/or INSTALL files always, and any other documentation present.
If you want a kind of “quick-help” guide/reference for the kernel makefile targets, you could use:
Code:
make help
(but it’s no substitute for reading the documentation)
 
  


Reply



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
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
./configure and the "make" commands not working Hellbreather Linux - Software 18 01-20-2006 06:38 AM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
none of the "make" commands work DAChristen29 Slackware 13 10-21-2004 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:02 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