[U-Boot] [PATCH] mkconfig: fix failure on boards that don't define soc

Allen Martin amartin at nvidia.com
Tue Aug 7 02:04:28 CEST 2012


Fix a configure failure on boards that don't define soc.  The exit
status of the subshell was propogating up and causing mkconfig to
fail.  Add an explicit exit 0 to the subshell to fix this.

Signed-off-by: Allen Martin <amartin at nvidia.com>
---
 mkconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mkconfig b/mkconfig
index 07031c6..d3363c6 100755
--- a/mkconfig
+++ b/mkconfig
@@ -144,7 +144,8 @@ fi
     echo "BOARD  = ${board}"
 
     [ "${vendor}" ] && echo "VENDOR = ${vendor}"
-    [ "${soc}"    ] && echo "SOC    = ${soc}" ) > config.mk
+    [ "${soc}"    ] && echo "SOC    = ${soc}"
+    exit 0 ) > config.mk
 
 # Assign board directory to BOARDIR variable
 if [ -z "${vendor}" ] ; then
-- 
1.7.9.5



More information about the U-Boot mailing list