Added configure switch for disabling the command-line tool.
This commit is contained in:
parent
7765e989c4
commit
478448dd68
|
|
@ -35,8 +35,11 @@ SUBDIRS = \
|
||||||
devices \
|
devices \
|
||||||
include \
|
include \
|
||||||
master \
|
master \
|
||||||
script \
|
script
|
||||||
tool
|
|
||||||
|
if BUILD_TOOL
|
||||||
|
SUBDIRS += tool
|
||||||
|
endif
|
||||||
|
|
||||||
if ENABLE_USERLIB
|
if ENABLE_USERLIB
|
||||||
SUBDIRS += lib
|
SUBDIRS += lib
|
||||||
|
|
|
||||||
22
configure.ac
22
configure.ac
|
|
@ -369,6 +369,28 @@ if test "x${cycles}" = "x1"; then
|
||||||
AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter])
|
AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Command-line tool
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([tool],
|
||||||
|
AS_HELP_STRING([--enable-tool],
|
||||||
|
[Build command-line tool (default: yes)]),
|
||||||
|
[
|
||||||
|
case "${enableval}" in
|
||||||
|
yes) tool=1
|
||||||
|
;;
|
||||||
|
no) tool=0
|
||||||
|
;;
|
||||||
|
*) AC_MSG_ERROR([Invalid value for --enable-tool])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
],
|
||||||
|
[tool=1]
|
||||||
|
)
|
||||||
|
|
||||||
|
AM_CONDITIONAL(BUILD_TOOL, test "x$tool" = "x1")
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Userspace library generation
|
# Userspace library generation
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue