mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
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:
committed by
Alin Jerpelea
parent
94483cf400
commit
431317ef26
+2
-2
@@ -244,9 +244,9 @@ echo " Refreshing..."
|
|||||||
cd $nuttx || { echo "ERROR: failed to cd to $nuttx"; exit 1; }
|
cd $nuttx || { echo "ERROR: failed to cd to $nuttx"; exit 1; }
|
||||||
make clean_context 1>/dev/null 2>&1
|
make clean_context 1>/dev/null 2>&1
|
||||||
if [ "X${debug}" = "Xy" ]; then
|
if [ "X${debug}" = "Xy" ]; then
|
||||||
make olddefconfig V=1
|
make olddefconfig V=1 || { echo "ERROR: failed to refresh"; exit 1; }
|
||||||
else
|
else
|
||||||
make olddefconfig 1>/dev/null 2>&1
|
make olddefconfig 1>/dev/null || { echo "ERROR: failed to refresh"; exit 1; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Move config file to correct location and restore any previous .config
|
# Move config file to correct location and restore any previous .config
|
||||||
|
|||||||
Reference in New Issue
Block a user