Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th November 2010, 09:36 PM
ValerioCMS Offline
Registered User
 
Join Date: Feb 2010
Posts: 23
linuxfedorafirefox
How to find kernel.spec file for compile vanilla kernel?

Hi,
i want to compile the vanilla kernel 2.6.37-rc3, but i want to obtain a .rpm file. I found this guide long time ago (i used it many times) but it use src.rpm package and the contained kernel.spec file have many lines for adding patches. Someone know where can i download a kernel.spec for vanilla kernel or a guide to obtain an rpm file???

Thanks
Reply With Quote
  #2  
Old 30th November 2010, 12:14 AM
John5342 Online
Registered User
 
Join Date: Jan 2008
Location: /dev/darkness
Posts: 103
linuxchrome
Re: How to find kernel.spec file for compile vanilla kernel?

According to the spec file:

Code:
# Want to build a vanilla kernel build without any non-upstream patches?
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
Adding "--with vanilla" (e.g: "rpmbuild -ba --with vanilla kernel.spec") to the rpmbuild command line should avoid applying the patches. I haven't tested it though.
__________________
F15 x86_64 - AMD FX60 - 4GB DDR - 4x 1TB RAID0 - 2x 9800GX2
F15 x86_64 - AMD64 X2 3800+ - 1GB DDR - 2x 750GB - 7800GT
OOKernel OS - AG2 GCU - 32TB ARAM - 1TB PRAM - AG1 TCU
Reply With Quote
  #3  
Old 30th November 2010, 06:54 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 811
windows_xp_2003chrome
Re: How to find kernel.spec file for compile vanilla kernel?

The other option is to download the vanilla kernels sources from kernel.org and configure it however you want using one of the several config options. After you have that, do a "make binrpm-pkg" to compile and produce a binary rpm of your own. Other options are available, just do "make help" to see them.
Reply With Quote
  #4  
Old 30th November 2010, 08:39 PM
droidhacker Offline
Registered User
 
Join Date: Oct 2009
Posts: 824
linuxfedorafirefox
Re: How to find kernel.spec file for compile vanilla kernel?

I suspect that vallimar's answer is the most appropriate.
Reply With Quote
  #5  
Old 1st February 2011, 09:18 AM
Laurelai Offline
Registered User
 
Join Date: Feb 2011
Posts: 1
linuxchrome
Re: How to find kernel.spec file for compile vanilla kernel?

"make binrpm-pkg" does not work properly, it does not create kernel headers and the installed kernel is missing the initramfs and system map, this is not the most appropriate answer in fact its not even a correct answer.

the closest kernel spec file i have seen to what you are asking for is the one cormander used for the grsecurity rpm's ( it only includes one patch) I have forked this project here https://github.com/Laurelai/grsecurity-kernel-rpm if you would like to follow it. I will attempt to include a generic kernel.spec when time allows and if there is enough interest[COLOR="Silver"]
Reply With Quote
Reply

Tags
compile, file, kernel, kernelspec, vanilla

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel compile with encrypted file system problem Thaidog Using Fedora 1 9th December 2009 04:48 PM
fedora kernel spec file and vanilla kernel LocutusOfBorg Using Fedora 4 27th August 2007 07:23 AM
New Kernel/Vanilla Kernel good bad and ugly quik69 Fedora Focus 5 7th February 2007 05:09 AM


Current GMT-time: 01:45 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat