LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-28-2009, 08:33 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,373

Rep: Reputation: Disabled
where should I build/store a new kernel?


I am still trying to compile a new kernel. The kernel source readme (MEPIS 7) says to keep it out of usr/src, to use my home folder for the new kernel, and to make a folder called [build]/kernel and then build the kernel there by using "0=[folder]" in the "make menuconfig" command.
However, the mepis.org compiling instructions ( http://www.mepis.org/docs/en/index.p...g_a_new_kernel ), don't mention that (as far as I noticed). They say to extract the kernel to usr/src. I'/m not sure which to follow, because I see the logic of keeping the new kernel out of usr/src (the readme says it's to avoid messing up the kernel headers that correspond to the libraries, or something), but the mepis.org instructions are significantly newer than MEPIS 7.
 
Old 01-28-2009, 09:29 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You can build it in wherever you like. Your home directory is convenient because you have permission in your home. Here's what some guy named Linus Torvalds recommends
Quote:
I would suggest that people who compile new kernels should:

* NOT do so in /usr/src. Leave whatever kernel (probably only the header files) that the distribution came with there, but don't touch it.

* compile the kernel in their own home directory, as their very own selves. No need to be root to compile the kernel. You need to be root to install the kernel, but that's different.

* not have a single symbolic link in sight (except the one that the kernel build itself sets up, namely the "linux/include/asm" symlink that is only used for the internal kernel compile itself).
You can find the full message here, which describes why the /usr/src/linux symlink should not exist (in most cases).
 
Old 01-28-2009, 10:06 PM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,373

Original Poster
Rep: Reputation: Disabled
I can see that not enough people know Mr. Torvalds's advice. The LQ members who have been helping me compile told me to make a symlink. I did what they said, because most LQ users who answer me know more, but the symlink looked like a kludge to me.

Last edited by newbiesforever; 01-28-2009 at 10:10 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Information store: What software could I use to store and access various info merixon Linux - Software 2 12-17-2008 11:51 AM
Which is the kernel build directory? I Can't find kernel build files crabsody Debian 7 01-09-2007 04:48 AM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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