u-boot: Check for CONFIG before running defconfig
authorPaul Kocialkowski <contact@paulk.fr>
Wed, 2 Sep 2015 20:53:58 +0000 (22:53 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Wed, 2 Sep 2015 20:53:58 +0000 (22:53 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
u-boot/u-boot-config.sh

index 0f148a1..ce38749 100755 (executable)
@@ -2,7 +2,10 @@
 
 . ./u-boot.sh
 
-make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE $CONFIG
+if [ "$CONFIG" != "" ]
+then
+       make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE $CONFIG
+fi
 
 if [ "$1" = "menuconfig" ]
 then