linux: Check for CONFIG before running defconfig
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 6 Feb 2016 12:07:50 +0000 (13:07 +0100)
committerPaul Kocialkowski <contact@paulk.fr>
Sat, 6 Feb 2016 12:07:50 +0000 (13:07 +0100)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
linux/linux-config.sh

index c686a7e..4e510ad 100755 (executable)
@@ -2,7 +2,10 @@
 
 . ./linux.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