May be include in GENERIC option INCLUDE_CONFIG_FILE?

Doug Barton dougb at FreeBSD.org
Mon Dec 14 03:28:05 UTC 2009


Robert Watson wrote:
> 
> On Sat, 12 Dec 2009, Doug Barton wrote:
> 
>> Alex Keda wrote:
>>> For those who have recently engaged in FreeBSD, and inexperienced
>>> managers who have inherited a server "by inheritance" is often the
>>> question arises - where to find the configuration file in which to
>>> compile your kernel? (Of course, a file by that time there =))
>>
>> I actually thought that was already done, but I see now that it's not.
>> I would like to see this as well, any objections?
> 
> I'd say go for it. 

Ok, here is the proposed patch. I'll commit it tomorrow unless someone
objects.


Doug

-- 

	Improve the effectiveness of your Internet presence with
	a domain name makeover!    http://SupersetSolutions.com/

-------------- next part --------------
Index: powerpc/conf/GENERIC
===================================================================
--- powerpc/conf/GENERIC	(revision 200500)
+++ powerpc/conf/GENERIC	(working copy)
@@ -24,6 +24,13 @@
 #To statically compile in device wiring instead of /boot/device.hints
 #hints		"GENERIC.hints"
 
+# Store the plain version of this configuration file in the kernel itself.
+# To store the entire file, including comments, put this in /etc/src.conf:
+# CONFIGARGS=	-C
+# See config(8) for more details.
+#
+options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
+
 makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
 
 # Platform support
Index: sparc64/conf/GENERIC
===================================================================
--- sparc64/conf/GENERIC	(revision 200500)
+++ sparc64/conf/GENERIC	(working copy)
@@ -30,6 +30,13 @@
 #
 # env		"GENERIC.env"
 
+# Store the plain version of this configuration file in the kernel itself.
+# To store the entire file, including comments, put this in /etc/src.conf:
+# CONFIGARGS=	-C
+# See config(8) for more details.
+#
+options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
+
 makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
 
 # Platforms supported
Index: ia64/conf/GENERIC
===================================================================
--- ia64/conf/GENERIC	(revision 200500)
+++ ia64/conf/GENERIC	(working copy)
@@ -23,6 +23,13 @@
 cpu		ITANIUM
 ident		GENERIC
 
+# Store the plain version of this configuration file in the kernel itself.
+# To store the entire file, including comments, put this in /etc/src.conf:
+# CONFIGARGS=	-C
+# See config(8) for more details.
+#
+options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
+
 makeoptions	DEBUG=-g	# Build kernel with debug information.
 
 options 	AUDIT		# Security event auditing
Index: sun4v/conf/GENERIC
===================================================================
--- sun4v/conf/GENERIC	(revision 200500)
+++ sun4v/conf/GENERIC	(working copy)
@@ -23,6 +23,13 @@
 cpu		SUN4V
 ident		GENERIC
 
+# Store the plain version of this configuration file in the kernel itself.
+# To store the entire file, including comments, put this in /etc/src.conf:
+# CONFIGARGS=	-C
+# See config(8) for more details.
+#
+options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
+
 makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
 makeoptions	NO_MODULES=""		# disable modules (aicasm in buildenv)
 
Index: pc98/conf/GENERIC
===================================================================
--- pc98/conf/GENERIC	(revision 200500)
+++ pc98/conf/GENERIC	(working copy)
@@ -32,6 +32,13 @@
 #
 # env		"GENERIC.env"
 
+# Store the plain version of this configuration file in the kernel itself.
+# To store the entire file, including comments, put this in /etc/src.conf:
+# CONFIGARGS=	-C
+# See config(8) for more details.
+#
+options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
+
 makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
 
 options 	SCHED_4BSD		# 4BSD scheduler
Index: i386/conf/GENERIC
===================================================================
--- i386/conf/GENERIC	(revision 200500)
+++ i386/conf/GENERIC	(working copy)
@@ -32,6 +32,13 @@
 #
 # env		"GENERIC.env"
 
+# Store the plain version of this configuration file in the kernel itself.
+# To store the entire file, including comments, put this in /etc/src.conf:
+# CONFIGARGS=	-C
+# See config(8) for more details.
+#
+options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
+
 makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
 
 options 	SCHED_ULE		# ULE scheduler
Index: amd64/conf/GENERIC
===================================================================
--- amd64/conf/GENERIC	(revision 200500)
+++ amd64/conf/GENERIC	(working copy)
@@ -30,6 +30,13 @@
 #
 # env		"GENERIC.env"
 
+# Store the plain version of this configuration file in the kernel itself.
+# To store the entire file, including comments, put this in /etc/src.conf:
+# CONFIGARGS=	-C
+# See config(8) for more details.
+#
+options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
+
 makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
 
 options 	SCHED_ULE		# ULE scheduler


More information about the freebsd-current mailing list