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:
parent
94483cf400
commit
431317ef26
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue