LinuxQuestions.org
Visit Jeremy's Blog.
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 03-24-2010, 05:23 AM   #1
pbhat
Member
 
Registered: Apr 2004
Location: India
Distribution: Opensuse 11.3
Posts: 34

Rep: Reputation: 15
compiling and installing kernel into user's own folder


Hello All,

I am compiling kernel to learn it and as well as for edubook, a netbook I am working on.

I wanted to put the compilation under my home directory and followed the syntax suggested in the README in /usr/src/linux,like,

Quote:
'make o=/home/pbhat/temp/kcompile menuconfig'
Like this I have gone through full compilation successfully,but see no output going to the specified folder.Could anybody point out where I went wrong?

I was compiling under /usr/src/linux and in Opensuse 11.2.I followed the README apparently written by Linus where I saw the above make syntax.Maybe that is old and hold good no more.
 
Old 03-25-2010, 02:18 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
This is confusing and unnecessary. Put the source tree wherever you want. For example, I have all my kernels in "/data/src". Go into the directory where your kernel source is and simply type "make menuconfig".

For example, if your source is at "/home/pbhat/temp/kcompile" (assuming pbhat is you):
Code:
cd ~/temp/kcompile  (or cd /home/pbhat/temp/kcompile, of course)
make oldconfig    (this should really be done before menuconfig)
make menuconfig
<the rest of the commands you want to run>

Last edited by Quakeboy02; 03-25-2010 at 02:19 PM.
 
Old 03-25-2010, 03:30 PM   #3
pbhat
Member
 
Registered: Apr 2004
Location: India
Distribution: Opensuse 11.3
Posts: 34

Original Poster
Rep: Reputation: 15
My source is not aT /home/pbhat/temp/kcompile.That is only supposed to be where the output should go.The reason I want all the installs to go there is,i do not need compilation for testing / running latest kernel.Only to build an rpm for edubook netbook which needs a custom-compiled kernel.

Standing at /usr/src/linux,you can send build outputs to a directory of your choice with
Quote:
Make O=folder_of_choice
. That 'O=folder_of_choice' should be part of all Make invocations.I have figured that out by re-reading kernel source README.Only thing I have yet to figure out is,how to send installs also in the same directory.I would not want my system to be cluttered.
 
Old 03-25-2010, 03:48 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
OK. Good luck!
 
  


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
Facing problem while setting user's quota on the nfs mounted folder . ilu_nishant Linux - Newbie 2 09-21-2009 06:25 PM
Deleted user's home folder f0r3nzIc Linux - General 5 07-18-2008 01:18 AM
/lib/modules/2.4.33.3/kernel/sound folder is missing after compiling kernel Paulo Góes Slackware - Installation 2 04-15-2007 08:42 PM
Compiling in any folder will install in current or correct folder ? anjanesh Fedora 4 05-10-2006 08:44 AM
compiling and installing a new kernel ramakrishna sura Linux - Newbie 2 01-23-2006 07:25 AM

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

All times are GMT -5. The time now is 02:12 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
Open Source Consulting | Domain Registration