Building a custom kernel with directions from Fedora

stan gryt2 at q.com
Mon Jul 6 18:38:59 UTC 2009


On Mon, 06 Jul 2009 10:01:53 +0100
psmith <psmith at fedoraproject.org> wrote:
> >   
> or you can just adjust the kernel spec file to build what you need ;)
> 
> phil
> 
I went and looked in the kernel.spec file.  It says the following about
default build options.



# The following build options are enabled by default.
# Use either --without <opt> in your rpmbuild command or force values
# to 0 in here to disable them.
#
# standard kernel
%define with_up        %{?_without_up:        0} %{?!_without_up:        1}
# kernel-smp (only valid for ppc 32-bit, sparc64)
%define with_smp       %{?_without_smp:       0} %{?!_without_smp:       1}
# kernel-kdump
%define with_kdump     %{?_without_kdump:     0} %{?!_without_kdump:     1}
# kernel-debug
%define with_debug     %{?_without_debug:     0} %{?!_without_debug:     1}
# kernel-doc
%define with_doc       %{?_without_doc:       0} %{?!_without_doc:       1}
# kernel-headers
%define with_headers   %{?_without_headers:   0} %{?!_without_headers:   1}
# kernel-firmware
%define with_firmware  %{?_with_firmware:  1} %{?!_with_firmware:  0}
# kernel-debuginfo
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
# kernel-bootwrapper (for creating zImages from kernel + initrd)
%define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1}
# Want to build a the vsdo directories installed
%define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1}



So firmware is defined exactly the opposite of all the other default
options.  They are checking for without, it is checking for with.  And
if with isn't found, it isn't built. Changing the line to 

# kernel-firmware
%define with_firmware  %{?_without_firmware:  0} %{?!_without_firmware:1}

would probably fix it so it defaulted to creating the firmware rpm
without specifying it.  Next time I build, I'll try this.  Though the
explicit request for firmware is no big deal either.  

Thanks for the tip.




More information about the fedora-list mailing list