Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109155790
D35437.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D35437.diff
View Options
diff --git a/sys/conf/kern.opts.mk b/sys/conf/kern.opts.mk
--- a/sys/conf/kern.opts.mk
+++ b/sys/conf/kern.opts.mk
@@ -42,6 +42,7 @@
IPFILTER \
IPSEC_SUPPORT \
ISCSI \
+ SPLIT_KERNEL_DEBUG \
KERNEL_SYMBOLS \
NETGRAPH \
OFED \
@@ -178,6 +179,10 @@
.endif
.endfor
+.if ${MK_SPLIT_KERNEL_DEBUG} == "no"
+MK_KERNEL_SYMBOLS:= no
+.endif
+
# Some modules only compile successfully if option FDT is set, due to #ifdef FDT
# wrapped around declarations. Module makefiles can optionally compile such
# things using .if !empty(OPT_FDT)
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -217,7 +217,7 @@
PROG= ${KMOD}.ko
.endif
-.if !defined(DEBUG_FLAGS) || ${MK_KERNEL_SYMBOLS} == "no"
+.if !defined(DEBUG_FLAGS) || ${MK_SPLIT_KERNEL_DEBUG} == "no"
FULLPROG= ${PROG}
.else
FULLPROG= ${PROG}.full
@@ -321,7 +321,7 @@
CLEANFILES+= ${PROG} ${KMOD}.kld ${OBJS}
-.if defined(DEBUG_FLAGS) && ${MK_KERNEL_SYMBOLS} != "no"
+.if defined(DEBUG_FLAGS) && ${MK_SPLIT_KERNEL_DEBUG} != "no"
CLEANFILES+= ${FULLPROG} ${PROG}.debug
.endif
diff --git a/tools/build/options/WITHOUT_KERNEL_SYMBOLS b/tools/build/options/WITHOUT_KERNEL_SYMBOLS
--- a/tools/build/options/WITHOUT_KERNEL_SYMBOLS
+++ b/tools/build/options/WITHOUT_KERNEL_SYMBOLS
@@ -1,4 +1,3 @@
.\" $FreeBSD$
-Do not build or install standalone kernel debug symbol files.
-Debug data (if enabled by the kernel configuration file)
-will be included in the kernel and modules.
+Do not install standalone kernel debug symbol files.
+This option has no effect at build time.
diff --git a/tools/build/options/WITHOUT_KERNEL_SYMBOLS b/tools/build/options/WITHOUT_SPLIT_KERNEL_DEBUG
copy from tools/build/options/WITHOUT_KERNEL_SYMBOLS
copy to tools/build/options/WITHOUT_SPLIT_KERNEL_DEBUG
--- a/tools/build/options/WITHOUT_KERNEL_SYMBOLS
+++ b/tools/build/options/WITHOUT_SPLIT_KERNEL_DEBUG
@@ -1,4 +1,3 @@
-.\" $FreeBSD$
-Do not build or install standalone kernel debug symbol files.
+Do not build standalone kernel debug files.
Debug data (if enabled by the kernel configuration file)
will be included in the kernel and modules.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 2, 1:29 PM (21 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16401627
Default Alt Text
D35437.diff (2 KB)
Attached To
Mode
D35437: Add SPLIT_KERNEL_DEBUG knob
Attached
Detach File
Event Timeline
Log In to Comment