This is an automated email from the ASF dual-hosted git repository.

davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 86e47534e60d6ea2f5ea85aaeec743432177b929
Author: Xiang Xiao <[email protected]>
AuthorDate: Sat Mar 21 18:14:41 2020 +0800

    tools: Remove -d option from configure.sh
    
    since we can achieve the same effect by passing V=1 to make
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 tools/configure.c  | 29 ++---------------------------
 tools/configure.sh |  9 ++-------
 tools/sethost.sh   | 13 ++-----------
 3 files changed, 6 insertions(+), 45 deletions(-)

diff --git a/tools/configure.c b/tools/configure.c
index c66f493..2bb5dca 100644
--- a/tools/configure.c
+++ b/tools/configure.c
@@ -265,8 +265,6 @@ static void parse_args(int argc, char **argv)
 
   /* Parse command line options */
 
-  g_debug = false;
-
   while ((ch = getopt(argc, argv, "a:bcdefghlmnu")) > 0)
     {
       switch (ch)
@@ -805,18 +803,7 @@ static void check_configured(void)
     {
       if (g_enforce)
         {
-          if (g_debug)
-            {
-              run_make("distclean V=1");
-            }
-          else
-            {
-        #ifdef WIN32
-              run_make("distclean");
-        #else
-              run_make("distclean 1>/dev/null");
-        #endif
-            }
+          run_make("distclean");
         }
       else
         {
@@ -1472,19 +1459,7 @@ static void refresh(void)
   printf("  Refreshing...\n");
   fflush(stdout);
 
-  if (g_debug)
-    {
-      ret = run_make("olddefconfig V=1");
-    }
-  else
-    {
-#ifdef WIN32
-      ret = run_make("olddefconfig");
-#else
-      ret = run_make("olddefconfig 1>/dev/null");
-#endif
-    }
-
+  ret = run_make("olddefconfig");
   putchar('\n');
 
 #ifdef WEXITSTATUS
diff --git a/tools/configure.sh b/tools/configure.sh
index aa01677..cb7334e 100755
--- a/tools/configure.sh
+++ b/tools/configure.sh
@@ -37,10 +37,9 @@ WD=`test -d ${0%/*} && cd ${0%/*}; pwd`
 TOPDIR="${WD}/.."
 USAGE="
 
-USAGE: ${0} [-d] [-e] [-l|m|c|u|g|n] [-a <app-dir>] <board-name>:<config-name> 
[make-opts]
+USAGE: ${0} [-e] [-l|m|c|u|g|n] [-a <app-dir>] <board-name>:<config-name> 
[make-opts]
 
 Where:
-  -d enables script debug output
   -e enforce distclean if already configured
   -l selects the Linux (l) host environment.
   -m selects the macOS (m) host environment.
@@ -72,7 +71,6 @@ unset boardconfig
 unset winnative
 unset appdir
 unset host
-unset debug
 unset enforce
 
 while [ ! -z "$1" ]; do
@@ -89,9 +87,6 @@ while [ ! -z "$1" ]; do
     winnative=y
     host+=" $1"
     ;;
-  -d )
-    debug=-d
-    ;;
   -e )
     enforce=y
     ;;
@@ -290,4 +285,4 @@ fi
 # The saved defconfig files are all in compressed format and must be
 # reconstitued before they can be used.
 
-${TOPDIR}/tools/sethost.sh $debug $host $*
+${TOPDIR}/tools/sethost.sh $host $*
diff --git a/tools/sethost.sh b/tools/sethost.sh
index af4aa4c..a11a081 100755
--- a/tools/sethost.sh
+++ b/tools/sethost.sh
@@ -33,17 +33,15 @@
 #
 
 progname=$0
-debug=n
 host=
 wenv=
 
 function showusage {
   echo ""
-  echo "USAGE: $progname -d [-l|m|c|u|g|n] [make-opts]"
+  echo "USAGE: $progname [-l|m|c|u|g|n] [make-opts]"
   echo "       $progname -h"
   echo ""
   echo "Where:"
-  echo "  -d enables script debug output"
   echo "  -l|m|c|u|g|n selects Linux (l), macOS (m), Cygwin (c),"
   echo "     Ubuntu under Windows 10 (u), MSYS/MSYS2 (g)"
   echo "     or Windows native (n). Default Linux"
@@ -56,9 +54,6 @@ function showusage {
 
 while [ ! -z "$1" ]; do
   case $1 in
-  -d )
-    debug=y
-    ;;
   -l )
     host=linux
     ;;
@@ -216,8 +211,4 @@ fi
 sed -i -e "/CONFIG_HOST_OTHER/d" $nuttx/.config
 
 echo "  Refreshing..."
-if [ "X${debug}" = "Xy" ]; then
-  make olddefconfig $* V=1 || { echo "ERROR: failed to refresh"; exit 1; }
-else
-  make olddefconfig $* 1>/dev/null || { echo "ERROR: failed to refresh"; exit 
1; }
-fi
+make olddefconfig $* || { echo "ERROR: failed to refresh"; exit 1; }

Reply via email to