Don't clean/build outputs if using user configured ROOTFS
authorYaniv Machani <yanivma@ti.com>
Thu, 13 Mar 2014 13:24:12 +0000 (15:24 +0200)
committerYaniv Machani <yanivma@ti.com>
Thu, 13 Mar 2014 13:24:12 +0000 (15:24 +0200)
build_wl18xx.sh

index 199994ec8eacf68f4ba58a9911db1b44b4e40fc8..cd221807c9b7a88cba466375454abec5375b0f84 100755 (executable)
@@ -402,11 +402,14 @@ function clean_outputs()
 
 function build_outputs()
 {
-       echo "Building outputs"    
-       cd_path filesystem
-       tar cpjf `path outputs`/${tar_filesystem[0]} .
-       cd_back
-       cp `path tftp`/uImage `path outputs`/uImage
+       if [[ "$ROOTFS" == "DEFAULT" ]]
+    then  
+        echo "Building outputs"    
+        cd_path filesystem
+        tar cpjf `path outputs`/${tar_filesystem[0]} .
+        cd_back
+        cp `path tftp`/uImage `path outputs`/uImage
+    fi
 }
 
 function install_outputs()
@@ -630,7 +633,7 @@ function main()
         
         'clean')        
         print_highlight " cleaning & building all "       
-               clean_outputs
+               #clean_outputs
         setup_directories
         build_all        
                ;;