[kernel] Add build option "--with=release" to build a non-debug kernel in rawhide.
Chuck Ebbert
cebbert at fedoraproject.org
Thu Oct 27 15:47:25 UTC 2011
commit 11ee03372b8b1997e8a7cbf3c941c1200c6c30ad
Author: Chuck Ebbert <cebbert at redhat.com>
Date: Thu Oct 27 11:47:50 2011 -0400
Add build option "--with=release" to build a non-debug kernel in rawhide.
kernel.spec | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 178c611..83221cb 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -137,6 +137,9 @@ Summary: The Linux kernel
#
# should we do C=1 builds with sparse
%define with_sparse %{?_with_sparse: 1} %{?!_with_sparse: 0}
+#
+# build a release kernel on rawhide
+%define with_release %{?_with_release: 1} %{?!_with_release: 0}
# Set debugbuildsenabled to 1 for production (build separate debug kernels)
# and 0 for rawhide (all kernels are debug kernels).
@@ -146,9 +149,6 @@ Summary: The Linux kernel
# Want to build a vanilla kernel build without any non-upstream patches?
%define with_vanilla %{?_with_vanilla: 1} %{?!_with_vanilla: 0}
-# We need to remember if the user has explicitly requested without_debug
-%define requested_nodebug !%{with_debug}
-
# Build the kernel-doc package, but don't fail the build if it botches.
# Here "true" means "continue" and "false" means "fail the build".
%if 0%{?released_kernel}
@@ -1146,9 +1146,9 @@ cp $RPM_SOURCE_DIR/config-* .
cp %{SOURCE15} .
%if !%{debugbuildsenabled}
-%if %{requested_nodebug}
+%if %{with_release}
# The normal build is a really debug build and the user has explicitly requested
-# without_debug. Change the config files into non-debug versions.
+# a release kernel. Change the config files into non-debug versions.
make -f %{SOURCE19} config-release
%endif
%endif
@@ -2017,6 +2017,9 @@ fi
# ||----w |
# || ||
%changelog
+* Wed Oct 26 2011 Chuck Ebbert <cebbert at redhat.com>
+- Add build option "--with=release" to build a non-debug kernel in rawhide.
+
* Wed Oct 26 2011 Josh Boyer <jwboyer at redhat.com>
- Linux 3.1-git1
More information about the scm-commits
mailing list