summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/kernconf.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/config/kernconf.tmpl')
-rw-r--r--usr.sbin/config/kernconf.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr.sbin/config/kernconf.tmpl b/usr.sbin/config/kernconf.tmpl
new file mode 100644
index 0000000..981efb7
--- /dev/null
+++ b/usr.sbin/config/kernconf.tmpl
@@ -0,0 +1,17 @@
+/*
+ * This file acts as a template for config.c that will be generated in the
+ * kernel build directory after config(8) has been successfully run.
+ *
+ * $FreeBSD$
+ */
+#include "opt_config.h"
+#ifdef INCLUDE_CONFIG_FILE
+
+const char kernconfstring[] __attribute__ ((section("kern_conf"))) =
+"%%KERNCONFFILE%%";
+
+#else
+
+const char kernconfstring[] = "\0";
+
+#endif /* INCLUDE_CONFIG_FILE */
OpenPOWER on IntegriCloud