sethost.sh: Don't ignore "make olddefconfig" failure

I guess missing kconfig-conf is a common mistake for
newbies like me.  Bail out earlier instead of producing
random errors during a build.
This commit is contained in:
YAMAMOTO Takashi 2020-01-28 00:18:58 +09:00 committed by Alin Jerpelea
parent 94483cf400
commit 431317ef26
1 changed files with 2 additions and 2 deletions

View File

@ -244,9 +244,9 @@ echo " Refreshing..."
cd $nuttx || { echo "ERROR: failed to cd to $nuttx"; exit 1; }
make clean_context 1>/dev/null 2>&1
if [ "X${debug}" = "Xy" ]; then
make olddefconfig V=1
make olddefconfig V=1 || { echo "ERROR: failed to refresh"; exit 1; }
else
make olddefconfig 1>/dev/null 2>&1
make olddefconfig 1>/dev/null || { echo "ERROR: failed to refresh"; exit 1; }
fi
# Move config file to correct location and restore any previous .config