From 431317ef269c8017a0626bf013f75d5020d7408c Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 28 Jan 2020 00:18:58 +0900 Subject: [PATCH] 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. --- tools/sethost.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/sethost.sh b/tools/sethost.sh index 2cd63ff064..2983095dd8 100755 --- a/tools/sethost.sh +++ b/tools/sethost.sh @@ -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