From 85c6263a303f90ba9c702815abc2488b36981b7e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 5 Jun 2016 14:21:02 -0600 Subject: [PATCH] tools/testbuild.sh was testing .config before configured. --- tools/testbuild.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tools/testbuild.sh b/tools/testbuild.sh index 0a6ecb0bdf..31b0f9b4ea 100755 --- a/tools/testbuild.sh +++ b/tools/testbuild.sh @@ -136,15 +136,6 @@ function distclean { fi } -# Check if build is NxWM and clean - -function nxcheck { - unset nxconfig - if [ -d $NXWDIR ]; then - nxconfig=`grep CONFIG_NXWM=y $nuttx/.config` - fi -} - # Configure for the next build function configure { @@ -226,6 +217,11 @@ function nxbuild { $UNLINK $APPSDIR/external fi + unset nxconfig + if [ -d $NXWDIR ]; then + nxconfig=`grep CONFIG_NXWM=y $nuttx/.config` + fi + if [ ! -z "$nxconfig" ]; then echo " Building NxWidgets..." echo "------------------------------------------------------------------------------------" @@ -261,7 +257,6 @@ function build { function dotest { echo "------------------------------------------------------------------------------------" - nxcheck distclean configure nxbuild