building from kernel source rpm

Richard Shaw hobbes1069 at gmail.com
Wed Nov 28 17:16:32 UTC 2012


On Tue, Nov 27, 2012 at 6:44 PM, JD <jd1008 at gmail.com> wrote:

> The rpmbuild interface does not provide the user a way
> to go through the entire config options before proceeding
> to build the kernel. If it does, I would really like to know
> how it's done.
>

I agree it's not intuitive but check and see if this is enough granularity
of control (from the spec file):

# 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)
%define with_smp       %{?_without_smp:       0} %{?!_without_smp:       1}
# kernel-PAE (only valid for i686)
%define with_pae       %{?_without_pae:       0} %{?!_without_pae:       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}
# perf
%define with_perf      %{?_without_perf:      0} %{?!_without_perf:      1}
# tools
%define with_tools     %{?_without_tools:     0} %{?!_without_tools:     1}
# kernel-debuginfo
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 1}
---end---

So you can do a rpmbuild -bb --without <option sans "with_">

HTH,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20121128/5820a5df/attachment.html>


More information about the users mailing list