Fedora Linux Support Community & Resources Center
  #1  
Old 4th March 2012, 03:57 PM
PaulAlesius Offline
Registered User
 
Join Date: Mar 2012
Location: Sweden
Posts: 23
linuxchrome
Does anyone know how to build a release kernel from the kernel-$(uname -r).src.rpm?

Hi,
I've been trying to build a non-debug kernel from the F17 alpha kernel source (yumdownloader --source kernel) but the build ends up being a debug build, I can see that from the installed config with grep "DEBUG" /boot/config-$(uname -r).

I've built it with "rpmbuild -bb --without debug,debuginfo" and even changed some kernel configs from the .src.rpm, it still ends up being a debug build

Does anyone know how to build a non-debug release kernel?

Last edited by PaulAlesius; 4th March 2012 at 04:00 PM.
Reply With Quote
  #2  
Old 4th March 2012, 04:08 PM
leigh123linux
Guest
 
Posts: n/a
linuxfirefox
Re: Does anyone know how to build a release kernel from the kernel-$(uname -r).src.rp

http://fedoraproject.org/wiki/Buildi...bugging_kernel
Reply With Quote
  #3  
Old 4th March 2012, 08:22 PM
PaulAlesius Offline
Registered User
 
Join Date: Mar 2012
Location: Sweden
Posts: 23
linuxchrome
Re: Does anyone know how to build a release kernel from the kernel-$(uname -r).src.rp

Quote:
Originally Posted by leigh123linux View Post
ok I found that there's a "release" switch to rpmbuild, supposedly one should be able to do "rpmbuild -bb --with release some.spec" but I don't know if the switch has any effect since it's not documented in man rpmbuild.

---------- Post added at 08:13 PM ---------- Previous post was at 04:25 PM ----------

I built the spec with:
Code:
rpmbuild -bb --with release --without debug --without debuginfo kernel.spec
But as it seems from the config file that ends up packaged with the rpm (That is later placed in /boot/), that it's still a debug build. grep "CONFIG_DEBUG" config-3.3.0-0.rc5.git3.1.fc17.x86_64:

Code:
CONFIG_DEBUG_DEVRES=y
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_SHIRQ=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_DEBUG_LIST=y
CONFIG_DEBUG_STACKOVERFLOW=y
CONFIG_DEBUG_RODATA=y
CONFIG_DEBUG_RODATA_TEST=y
CONFIG_DEBUG_SET_MODULE_RONX=y
CONFIG_DEBUG_NX_TEST=m
CONFIG_DEBUG_BOOT_PARAMS=y


---------- Post added at 08:22 PM ---------- Previous post was at 08:13 PM ----------

Nevermind, it seems to be a release build this time.

Steps to build a really fast "release" kernel:

Code:
$ yumdownloader --source kernel
$ rpm -ivh kernel*rpm
$ cd $HOME/rpmbuild/SPECS
$ rpmbuild -bb --with release --without debug --without debuginfo kernel.spec
$ cd $HOME/rpmbuild/RPMS/*
$ sudo rpm -Uvh --force *.rpm

Last edited by PaulAlesius; 4th March 2012 at 05:08 PM.
Reply With Quote
  #4  
Old 5th March 2012, 10:48 PM
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,254
linuxfirefox
Re: Does anyone know how to build a release kernel from the kernel-$(uname -r).src.rp

The other way to build a release kernel, btw, is to check the kernel package out from git (fedpkg is the easiest way to do this) and run 'make release' then 'fedpkg srpm' to generate a .src.rpm. Then you can build it directly, or via mock, or as a koji scratch build if you're allowed to.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
Reply With Quote
  #5  
Old 5th March 2012, 11:08 PM
PaulAlesius Offline
Registered User
 
Join Date: Mar 2012
Location: Sweden
Posts: 23
linuxchrome
Re: Does anyone know how to build a release kernel from the kernel-$(uname -r).src.rp

AdamW,

Sounds great if you can make the srpm that way from the latest source!
Reply With Quote
Reply

Tags
build, kernel, release, srcrpm

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
how to build kernel-kernel-headers-version.arch.rpm ? charlweed Using Fedora 2 26th October 2009 06:18 AM
non-GPL kernel release.... chocobanana Using Fedora 1 27th March 2006 04:56 PM
How to build kernel-sourcecode-xxx.rpm from kernel .src.rpm Rain Installation, Upgrades and Live Media 2 9th November 2004 07:11 PM


Current GMT-time: 19:27 (Saturday, 20-12-2014)

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
...White Oaks Resort & Spa - Bangkok Thailand Photos on Instagram - Onnenkoski - Curium Ancient Theatre Photos - AGRA Colombo Photos on Instagram