Merge branch 'internal'
[wilink8-wlan/build-utilites.git] / build_wl18xx.sh
index b95ab692465d66e54324f45ad2fc88298dfb2986..c8f125b63352166e1cbcdabf3c24e2555cac3d04 100755 (executable)
@@ -29,6 +29,7 @@ function usage ()
     echo "                          update       <head|TAG>  [ Update to specific TAG & Build ] "
     echo "                          clean                    [ Clean & Build                  ] "
     echo "                          <empty>                  [ Build w/o update               ] "
+     echo "                         all_intree               [ Build driver and kernel intree ] " 
     echo "                          check_updates            [ Check for build script updates ] "
     echo ""
     echo "Building specific component :"
@@ -256,7 +257,7 @@ function setup_branches()
         if [[ "$url" == *git.ti.com* ]]
         then            
            [[ -n $RESET ]] && echo -e "${PURPLE}Reset to latest in repo ${GREEN}$name ${NORMAL} branch  ${GREEN}$branch ${NORMAL}"  && git reset --hard origin/$branch
-           [[ -n $USE_TAG ]] && git reset --hard $USE_TAG  && echo -e "${NORMAL}Reset to tag ${GREEN}$USE_TAG   ${NORMAL}in repo ${GREEN}$name ${NORMAL} "            
+           [[ -n $USE_TAG ]] && git checkout $USE_TAG  && echo -e "${NORMAL}Reset to tag ${GREEN}$USE_TAG   ${NORMAL}in repo ${GREEN}$name ${NORMAL} "            
         fi        
                cd_back
                i=$[$i + 3]