diff options
author | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-08-26 11:46:36 +0300 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2016-08-29 11:47:18 +0200 |
commit | f2d2f1a74af9f7d3ac8523f3837ec1fc63442bcd (patch) | |
tree | e671b8ca14b49a408bd49e5853f0c78040d47725 | |
parent | 6a957e933443eaa088eaf8565865eebc321e4700 (diff) |
helper/generic: add debug print option
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rw-r--r-- | helper/generic | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helper/generic b/helper/generic index bbae0d6..09f03b3 100644 --- a/helper/generic +++ b/helper/generic @@ -14,6 +14,7 @@ export GLOBAL_DSTDIRPATH="$ROOT_DIR/new-build" export DSTDIR="--prefix=${GLOBAL_DSTDIRPATH}" export CHECK_TARBALL="${CHECK_TARBALL:-0}" export DEBUG_SCRIPT="${DEBUG_SCRIPT:-0}" +export ENABLE_DEBUG="${ENABLE_DEBUG:-0}" # Print debug messages, set DEBUG_SCRIPT to 0 if not required isdebug() { @@ -49,6 +50,11 @@ if [[ ${EXAMPLE_TEST} -eq 1 ]]; then export CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-test-example" fi +isdebug echo "helper/generic: before ENABLE_DEBUG: ${EXAMPLE_DEBUG}" +if [[ ${ENABLE_DEBUG} -eq 1 ]]; then + export CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --enable-debug-print --enable-debug" +fi + mkdir -p ${SRCDIR} mkdir -p ${BUILDDIR} mkdir -p ${LOGDIR} @@ -79,6 +85,7 @@ common_usage() { echo -e "\tINSTALLCHECK:\t set to 1 to enable INSTALLCHECK build, default: 0" echo -e "\tSUDO:\t\t set to 1 to enable sudo before make check, default: 0" echo -e "\tDEBUG_SCRIPT:\t set to 1 to enable debug output from the script, default: 0" + echo -e "\tENABLE_DEBUG:\t enable debug prints, default: 0" } display_os(){ |