tools/testbuild.sh was testing .config before configured.

This commit is contained in:
Gregory Nutt 2016-06-05 14:21:02 -06:00
parent dbca089c96
commit 85c6263a30

View File

@ -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