From 91d50621d44c5b14e747d092e84c993ad99323ba Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Tue, 24 Mar 2015 12:11:37 +0530 Subject: Fix git access for the bot Signed-off-by: Vishal Bhoj --- a80build.sh | 63 +++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/a80build.sh b/a80build.sh index 996b380..998647c 100755 --- a/a80build.sh +++ b/a80build.sh @@ -1,23 +1,27 @@ #!/bin/bash -set +x +set -e +whoami +export GIT_TRACE=2 +git clone --verbose ssh://linaro-big-little-switcher-bot@linaro-private.git.linaro.org/srv/linaro-private.git.linaro.org/lhg/allwinner/linux-lsk-alw.git linux-3.10 + +rm -rf android-a80 # get and sync android sources if [ ! -d android-a80 ]; then mkdir android-a80 fi -pushd android-a80 +cd android-a80 if [ ! -d android ]; then mkdir android fi -pushd android - +cd android if [ ! -d .repo ]; then - repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.2_r2 + repo init -u https://android.git.linaro.org/git/platform/manifest -b android-4.4.2_r2 fi repo sync -popd -popd +cd ../ +cd ../ # get tarballs if [ ! -f a80_release_2_android.tar.bz2 ]; then @@ -32,35 +36,36 @@ fi # unpack tarballs mkdir -p unpack/a80_release_2_android unpack/a80_release_2_lichee -if [ ! -d unpack/a80_release_2_android/android ]; then +#if [ ! -d unpack/a80_release_2_android/android ]; then rm -fr unpack/a80_release_2_android mkdir unpack/a80_release_2_android - pushd unpack/a80_release_2_android + cd unpack/a80_release_2_android bzip2 -d < ../../a80_release_2_android.tar.bz2 | tar xfv - - popd + cd - cp -a unpack/a80_release_2_android/android/* android-a80/android -fi -if [ ! -d unpack/a80_release_2_lichee ]; then +#fi +#if [ ! -d unpack/a80_release_2_lichee ]; then rm -fr unpack/a80_release_2_lichee mkdir unpack/a80_release_2_lichee - pushd unpack/a80_release_2_lichee + cd unpack/a80_release_2_lichee bzip2 -d < ../../a80_release_2_lichee.tar.bz2 | tar xfv - - popd + cd - cp -a unpack/a80_release_2_lichee/lichee android-a80/ -fi - +#fi +#sudo chmod -R 777 * # grab a80 linux kernel -pushd android-a80/lichee +cd android-a80/lichee if [ ! -d linux-3.10 ]; then - git clone ssh://linaro-private.git.linaro.org/srv/linaro-private.git.linaro.org/lhg/allwinner/linux-lsk-alw.git linux-3.10 - pushd linux-3.10 +# sudo su - jenkins-build + git clone ssh://linaro-big-little-switcher-bot@linaro-private.git.linaro.org/srv/linaro-private.git.linaro.org/lhg/allwinner/linux-lsk-alw.git linux-3.10 + cd linux-3.10 git checkout a80_porting - popd + cd ../ fi -pushd linux-3.10 +cd linux-3.10 git pull -popd -popd +cd ../ +cd ../../ if [ ! -f .001-wifi.patch.done ]; then patch -p1 < 001-wifi.patch @@ -80,19 +85,19 @@ if [ ! -f android-a80/lichee/.buildconfig ]; then cp dot.buildconfig android-a80/lichee/.buildconfig fi if [ ! -f android-a80/lichee/build.sh ]; then - pushd android-a80/lichee + cd android-a80/lichee cp buildroot/scripts/top_build.sh build.sh - popd + cd ../../ fi -pushd android-a80/lichee +cd android-a80/lichee ./build.sh if [ $? -ne 0 ]; then exit 1 fi -popd +cd ../../ # build android -pushd android-a80/android +cd android-a80/android source build/envsetup.sh lunch kylin_optimus-eng extract-bsp @@ -100,4 +105,4 @@ make -j16 if [ $? -ne 0 ]; then exit 1 fi -popd +cd ../../ -- cgit v1.2.3