summaryrefslogtreecommitdiffstats
path: root/freebsd/sys
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-04-23 17:37:27 +1000
committerChris Johns <chrisj@rtems.org>2016-04-23 17:37:27 +1000
commite1e10cddee4be72c2a66218c2bc0393e578a7fdc (patch)
treebe28236f336ed07b491020c3ebf3cd0ed08e9373 /freebsd/sys
parentwaf: Move the generated content to libbsd_waf.py. (diff)
downloadrtems-libbsd-e1e10cddee4be72c2a66218c2bc0393e578a7fdc.tar.bz2
waf: Add the ability to set FreeBSD options on the configure command line.
Add --freebsd-options to add specific FreeBSD compile time options to the build. This is a developer tool.
Diffstat (limited to 'freebsd/sys')
-rw-r--r--freebsd/sys/kern/init_main.c5
-rw-r--r--freebsd/sys/sys/systm.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/freebsd/sys/kern/init_main.c b/freebsd/sys/kern/init_main.c
index 8e65b5f4..7311bb02 100644
--- a/freebsd/sys/kern/init_main.c
+++ b/freebsd/sys/kern/init_main.c
@@ -161,6 +161,11 @@ sysinit_add(struct sysinit **set, struct sysinit **set_end)
newsysinit_end = newset + count;
}
#else /* __rtems__ */
+#ifdef BOOTVERBOSE
+int bootverbose = 1;
+SYSCTL_INT(_debug, OID_AUTO, bootverbose, CTLFLAG_RW, &bootverbose, 0,
+ "Control the output of verbose kernel messages");
+#endif
RWSET_DECLARE(sysinit_set, struct sysinit);
#endif /* __rtems__ */
diff --git a/freebsd/sys/sys/systm.h b/freebsd/sys/sys/systm.h
index 6ac0491d..36b3f59f 100644
--- a/freebsd/sys/sys/systm.h
+++ b/freebsd/sys/sys/systm.h
@@ -73,7 +73,11 @@ extern int boothowto; /* reboot flags, from console subsystem */
#ifndef __rtems__
extern int bootverbose; /* nonzero to print verbose messages */
#else /* __rtems__ */
-#define bootverbose 0 /* XXX RTEMS doesn't support verbose */
+#ifdef BOOTVERBOSE
+extern int bootverbose; /* nonzero to print verbose messages */
+#else
+#define bootverbose 0 /* Remove all verbose code for the standard RTEMS build */
+#endif /* BOOTVERBOSE */
#endif /* __rtems__ */