Changes to support DEFAULT kernel
authorYaniv Machani <yanivma@ti.com>
Thu, 10 Apr 2014 11:45:41 +0000 (14:45 +0300)
committerYaniv Machani <yanivma@ti.com>
Thu, 10 Apr 2014 11:45:41 +0000 (14:45 +0300)
build_wl18xx.sh

index 92863d9d78e981bda4103eaf6e3e8371076b644d..ff3a2f567accb244d30ae186e4c92360fcb6a42f 100755 (executable)
@@ -199,8 +199,8 @@ function setup_branches()
                url=${repositories[$i + 1]}
         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
+        #for all the openlink repo. we use a tag if provided.        
+        [ "$name" == "kernel" ] && [ -z "$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