Added configure-device.sh to the wlconf file list
[wilink8-wlan/build-utilites.git] / build_wl18xx.sh
index 199994ec8eacf68f4ba58a9911db1b44b4e40fc8..92863d9d78e981bda4103eaf6e3e8371076b644d 100755 (executable)
@@ -200,6 +200,7 @@ function setup_branches()
         branch=${repositories[$i + 2]}   
         checkout_type="branch"       
         #for all the openlink repo. we use a tag if provided.
+        [ ! "$name" != "kernel" -o "$DEFAULT_KERNEL" ] && i=$[$i + 3] && continue
         cd_repo $name    
         echo -e "\n${NORMAL}Checking out branch ${GREEN}$branch  ${NORMAL}in repo ${GREEN}$name ${NORMAL} "
                git checkout $branch        
@@ -349,7 +350,7 @@ function build_calibrator()
 
 function build_wlconf()
 {
-       files_to_copy="dictionary.txt struct.bin wl18xx-conf-default.bin README example.conf example.ini"
+       files_to_copy="dictionary.txt struct.bin wl18xx-conf-default.bin README example.conf example.ini configure-device.sh"
        cd `repo_path ti_utils`/wlconf
        if [ -z $NO_CLEAN ]; then
                NFSROOT=`path filesystem` make clean
@@ -402,11 +403,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 +634,7 @@ function main()
         
         'clean')        
         print_highlight " cleaning & building all "       
-               clean_outputs
+               #clean_outputs
         setup_directories
         build_all        
                ;;