summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2016-02-15 09:52:19 -0800
committerManoj Srivastava <srivasta@debian.org>2016-02-15 09:52:19 -0800
commita977dd53aa268d153e7a1dfa452bc5dbf0c8d395 (patch)
treefba1bd8d754fedba41b68930faa238d906371838
parenta004e5ab27e660dbae1243a2e42d3db4f1b08780 (diff)
document passing CFLAGS to kernel
Bug fix: "please document passing CFLAGS (actually KCFLAGS) to kernel makefile", thanks to Arthur Marsh (Closes: #777105). Signed-off-by: Manoj Srivastava <srivasta@debian.org>
-rw-r--r--debian/changelog4
-rw-r--r--make-kpkg.814
2 files changed, 11 insertions, 7 deletions
diff --git a/debian/changelog b/debian/changelog
index 14770be..6b669e1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,8 +4,10 @@ kernel-package (13.017) unstable; urgency=low
Elliott Mitchell (Closes: #774601).
* Bug fix: "Installed vmlinuz file has insufficient read permissions",
thanks to Toby Speight (Closes: #775834).
+ * Bug fix: "please document passing CFLAGS (actually KCFLAGS) to kernel
+ makefile", thanks to Arthur Marsh (Closes: #777105).
- -- Manoj Srivastava <srivasta@debian.org> Mon, 15 Feb 2016 09:37:36 -0800
+ -- Manoj Srivastava <srivasta@debian.org> Mon, 15 Feb 2016 09:51:51 -0800
kernel-package (13.016) unstable; urgency=high
diff --git a/make-kpkg.8 b/make-kpkg.8
index 5e6983a..c01f836 100644
--- a/make-kpkg.8
+++ b/make-kpkg.8
@@ -73,12 +73,7 @@ The Debian package file is created in the parent directory of the
kernel source directory where this command is run.
.PP
Also, please note that some versions of gcc do not interact well with
-the kernel sources (gcc 2.95 has problems compiling the kernel without
-the flag
-.IR '\-fno\-strict\-aliasing' .
-This issue has been taken care of for
-recent kernels (2.2 and 2.4 series are fine) (I think you may have to
-edit the makefile for older kernels, or something). You may control
+the kernel source. You may control
which version of gcc used in kernel compilation by setting the
Makefile variables CC and HOSTCC in the top level kernel Makefile. You
can do this simply by setting the environment variable
@@ -87,6 +82,13 @@ To observe, try:
.PP
% KBUILD_VERBOSE=1 MAKEFLAGS="CC=gcc\-4.4" make\-kpkg configure
.PP
+Please note that the kernel Makefile might pay attention to other
+variables (for instance
+.BR KCFLAGS
+). This can be addressed like so:
+.PP
+ % KBUILD_VERBOSE=1 MAKEFLAGS='CC=gcc\-4.4 KCFLAGS="-march=athlon64"' make\-kpkg configure
+.PP
The
.B KBUILD_VERBOSE
shows the details of the commands being run.