summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorwkoszek <wkoszek@FreeBSD.org>2007-05-16 16:08:04 +0000
committerwkoszek <wkoszek@FreeBSD.org>2007-05-16 16:08:04 +0000
commit04e8b672c852d872cc214c6745d7cddca1d5080c (patch)
tree03ff842bb083cfa0e60ff73df52ccd060a23abba /usr.sbin/config
parent48978a06b6fe9452d50438ecc2208d7cc7815d93 (diff)
downloadFreeBSD-src-04e8b672c852d872cc214c6745d7cddca1d5080c.zip
FreeBSD-src-04e8b672c852d872cc214c6745d7cddca1d5080c.tar.gz
Handle !INCLUDE_CONFIG_FILE entirely in the kernel. This should make some
developers happy, since it will let them to use old config(8) with newer kernels. Reviewed by: imp Approved by: imp
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/kernconf.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/config/kernconf.tmpl b/usr.sbin/config/kernconf.tmpl
index 981efb7..182614b 100644
--- a/usr.sbin/config/kernconf.tmpl
+++ b/usr.sbin/config/kernconf.tmpl
@@ -7,11 +7,11 @@
#include "opt_config.h"
#ifdef INCLUDE_CONFIG_FILE
+/*
+ * For !INCLUDE_CONFIG_FILE case, you should look at kern_mib.c. This is
+ * where kernconfstring is defined then.
+ */
const char kernconfstring[] __attribute__ ((section("kern_conf"))) =
"%%KERNCONFFILE%%";
-#else
-
-const char kernconfstring[] = "\0";
-
#endif /* INCLUDE_CONFIG_FILE */
OpenPOWER on IntegriCloud