<---- template headericclude ----->
[SOLVED] Does anyone know how to build a release kernel from the kernel-$(uname -r).src.rpm?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2012
    Location
    Sweden
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    leigh123linux Guest

    Re: Does anyone know how to build a release kernel from the kernel-$(uname -r).src.rp


  3. #3
    Join Date
    Mar 2012
    Location
    Sweden
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Does anyone know how to build a release kernel from the kernel-$(uname -r).src.rp

    Quote Originally Posted by leigh123linux
    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.

  4. #4
    Join Date
    Dec 2008
    Location
    Vancouver, BC
    Posts
    4,333
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    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
    IRC: adamw | Fedora Chat: @adamwill:fedora.im
    http://www.happyassassin.net

  5. #5
    Join Date
    Mar 2012
    Location
    Sweden
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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!

Similar Threads

  1. how to build kernel-kernel-headers-version.arch.rpm ?
    By charlweed in forum Using Fedora
    Replies: 2
    Last Post: 26th October 2009, 06:18 AM
  2. non-GPL kernel release....
    By chocobanana in forum Using Fedora
    Replies: 1
    Last Post: 27th March 2006, 04:56 PM
  3. How to build kernel-sourcecode-xxx.rpm from kernel .src.rpm
    By Rain in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 9th November 2004, 07:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]