Skip to content
Snippets Groups Projects
Commit 3ccb3ed9 authored by Florian Pose's avatar Florian Pose
Browse files

Added configure switch for disabling the command-line tool.

parent 85dccf90
No related branches found
No related tags found
No related merge requests found
......@@ -35,8 +35,11 @@ SUBDIRS = \
devices \
include \
master \
script \
tool
script
if BUILD_TOOL
SUBDIRS += tool
endif
if ENABLE_USERLIB
SUBDIRS += lib
......
......@@ -369,6 +369,28 @@ if test "x${cycles}" = "x1"; then
AC_DEFINE([EC_HAVE_CYCLES], [1], [Use CPU timestamp counter])
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
#------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment