]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
LINUX: Bring debug symbols back to the Linux kernel module.
authorJoe Gorse <jhgorse@gmail.com>
Thu, 16 Feb 2017 23:01:50 +0000 (18:01 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 8 Mar 2017 09:08:57 +0000 (04:08 -0500)
Starting with 4.8 Linux kernels our existing build script
generator, make_kbuild_makefile.pl, does not pass the debugging
symbols CFLAGS that were present when building for previous kernels.

This fix appends the $(KERN_DBG) variable which will only be defined
when the configuration includes the --enable-debug-kernel option.

Reviewed-on: https://gerrit.openafs.org/12519
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 961cee00b8f5c302de5f66beb81caa33242c7971)

Change-Id: I1d16382c4a744d4624cac9a9ba2810fa664abe93
Reviewed-on: https://gerrit.openafs.org/12534
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/libafs/MakefileProto.LINUX.in

index a79119d39b7f502c8fc4b34c42df5755aeef900a..ab54af28b7f52278c359af677a57ace1f6f25db4 100644 (file)
@@ -148,7 +148,7 @@ DEFINES = $(COMMON_DEFINES)
 INCLUDES = -I. -I../ -I${TOP_OBJDIR}/src/config \
   -I${TOP_SRCDIR}/rx -I${TOP_OBJDIR}/src/rxstat
 
-CFLAGS = $(CCFLAGS) $(DEFINES) $(INCLUDES)
+CFLAGS = $(CCFLAGS) $(KERN_DBG) $(DEFINES) $(INCLUDES)
 
 # Name of directory to hold object files and libraries.
 KOBJ = MODLOAD