Commit 5b337c36 authored by Fabrice Fontaine's avatar Fabrice Fontaine Committed by Jan Kiszka
Browse files

Add --disable-{demo,testsuite} options



Allow the user to disable demo and testsuite to decrease compilation
time and save disk space.
Signed-off-by: default avatarFabrice Fontaine <fontaine.fabrice@gmail.com>
[Jan: slightly more verbose help for demo]
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 166cb3ab
......@@ -6,9 +6,17 @@ SUBDIRS = \
config \
include \
scripts \
testsuite \
utils \
utils
if XENO_ENABLE_DEMO
SUBDIRS += \
demo
endif
if XENO_ENABLE_TESTSUITE
SUBDIRS += \
testsuite
endif
EXTRA_DIST = kernel debian
......
......@@ -200,6 +200,18 @@ test \! x$debug_mode = x && AC_DEFINE(CONFIG_XENO_DEBUG,1,[config])
AM_CONDITIONAL(XENO_DEBUG_FULL,[test x$debug_mode = xfull])
test x$debug_mode = xfull && AC_DEFINE(CONFIG_XENO_DEBUG_FULL,1,[config])
dnl Demo (default: on)
AC_ARG_ENABLE(demo,
AS_HELP_STRING([--disable-demo], [Disable demonstration code]))
AM_CONDITIONAL(XENO_ENABLE_DEMO,[test x$enable_demo != xno])
dnl Testsuite (default: on)
AC_ARG_ENABLE(testsuite,
AS_HELP_STRING([--disable-testsuite], [Disable testsuite]))
AM_CONDITIONAL(XENO_ENABLE_TESTSUITE,[test x$enable_testsuite != xno])
dnl Low resolution clock (default: off)
unset lores_clock
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment