build_wl18xx.sh: Do not clean fs and output if ROOTFS path is not DEFAULT
authorGuy Mishol <guym@ti.com>
Thu, 17 Jul 2014 07:19:57 +0000 (10:19 +0300)
committerGuy Mishol <guym@ti.com>
Thu, 17 Jul 2014 07:19:57 +0000 (10:19 +0300)
Signed-off-by: Guy Mishol <guym@ti.com>
build_wl18xx.sh

index 40a499003e32140b33d0cc2bb4c59bc0c10dcb78..85ee848b01260638a4001757f9967c702a5dfbce 100755 (executable)
@@ -438,16 +438,18 @@ function clean_kernel()
 
 function clean_outputs()
 {
+    if [[ "$ROOTFS" == "DEFAULT" ]]
+    then
        echo "Cleaning outputs"   
-    rm -rf `path filesystem`/*
-    rm -f `path outputs`/${tar_filesystem[0]}
+        rm -rf `path filesystem`/*
+        rm -f `path outputs`/${tar_filesystem[0]}
        rm -f `path outputs`/uImage
-       
+    fi
 }
 
 function build_outputs()
 {
-       if [[ "$ROOTFS" == "DEFAULT" ]]
+    if [[ "$ROOTFS" == "DEFAULT" ]]
     then  
         echo "Building outputs"    
         cd_path filesystem