LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-24-2003, 03:25 PM   #1
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
make rpm kernel 2.6.0


Can I just do a simple with the 2.6.0 kernel
make xconfig
make rpm
to make a rpm from the kernel

Thanks,
AD
 
Old 12-24-2003, 03:26 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Not that I know of.. you need to install RPM's using the rpm command.
 
Old 12-24-2003, 03:36 PM   #3
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
I dont need to know how to install the rpm's I need to know how to build one from the kernel source code.

There is a discussion about how to make a rpm from the source code
http://linuxquestions.org/questions/...pm+from+source
Thetargos wrote about how to do this 4 posts down.

Thanks,
AD
 
Old 12-24-2003, 03:42 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by illtbagu
I dont need to know how to install the rpm's I need to know how to build one from the kernel source code.

There is a discussion about how to make a rpm from the source code
http://linuxquestions.org/questions/...pm+from+source
Thetargos wrote about how to do this 4 posts down.

Thanks,
AD
Did you try what he explained then.. seems very well written to me...

You have to compile your working kernel first to build the rpm.
 
Old 12-24-2003, 05:14 PM   #5
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
After going and reading that post 1 more time It still says the same thing

Quote:
To build an RPM package of your kernel, you need to pass to the make command the argument rpm. Like this:

code:

# make rpm
It says nothing about needing to compile first that is why I am asking the question. Just imagine someone who has only been using linux for about 1.5 years and has only compiled about 5 kernels ever. He comes across this post that says you can make a rpm from the kernel source code by doing
make rpm
I know just enough about linux to know nothing is ever that easy but I also read this part too

Quote:
If you pay attention to the top level directory of your kernel sources you will most likely find a file called kernel.spec. These files are used to build RPM packages.
Now after looking at this file I noticed all of the commands needed to build a kernel and install it are in that file. Seems kind of odd to me. Why would these commands be there unless they get executed. How do you explain this?

So before I start messing around with the heart (kernel) of the OS it would be nice to have some clarity thats all. So after googling for a while I came across some directions that confirm what you are saying

Quote:
You have to compile your working kernel first to build the rpm.
So now the only question left is if I go with what you are telling me should I do the "make modules_install"


make dep
make clean
make bzImage
make modules
????????make modules_install????????
make rpm

Thanks for your Patience and help,
AD

Oh and Merry Christmas and a happy new year
 
  


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 your own rpm kernel overpeer Linux - Software 1 08-27-2005 08:59 PM
how do I make a binary rpm from a source rpm darkone66669 Linux - Software 3 01-11-2005 11:42 AM
making kernel RPM. does not make initrd file mindcry Linux - Software 5 08-12-2004 11:20 PM
trying to make rpm 2.6.0 kernel illtbagu Linux - Software 0 12-27-2003 04:01 AM
Kernel compilation (make rpm) Thetargos Red Hat 0 08-31-2003 04:35 PM


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