blob: 998647c4e383a48230f575d4bf2e33883286a905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
#!/bin/bash
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
cd android-a80
if [ ! -d android ]; then
mkdir android
fi
cd android
if [ ! -d .repo ]; then
repo init -u https://android.git.linaro.org/git/platform/manifest -b android-4.4.2_r2
fi
repo sync
cd ../
cd ../
# get tarballs
if [ ! -f a80_release_2_android.tar.bz2 ]; then
wget -O a80_release_2_android.tar.bz2 https://fileserver.linaro.org/ajaxplorer/data/public/f0344e.php?dl=true
fi
if [ ! -f a80_release_2_lichee.tar.bz2 ]; then
wget -O a80_release_2_lichee.tar.bz2 https://fileserver.linaro.org/ajaxplorer/data/public/e90a43.php?dl=true
fi
if [ ! -f gcc-linaro.tar.bz2 ]; then
wget -O gcc-linaro.tar.bz2 https://fileserver.linaro.org/ajaxplorer/data/public/5e63ac.php?dl=true
fi
# unpack tarballs
mkdir -p unpack/a80_release_2_android unpack/a80_release_2_lichee
#if [ ! -d unpack/a80_release_2_android/android ]; then
rm -fr unpack/a80_release_2_android
mkdir unpack/a80_release_2_android
cd unpack/a80_release_2_android
bzip2 -d < ../../a80_release_2_android.tar.bz2 | tar xfv -
cd -
cp -a unpack/a80_release_2_android/android/* android-a80/android
#fi
#if [ ! -d unpack/a80_release_2_lichee ]; then
rm -fr unpack/a80_release_2_lichee
mkdir unpack/a80_release_2_lichee
cd unpack/a80_release_2_lichee
bzip2 -d < ../../a80_release_2_lichee.tar.bz2 | tar xfv -
cd -
cp -a unpack/a80_release_2_lichee/lichee android-a80/
#fi
#sudo chmod -R 777 *
# grab a80 linux kernel
cd android-a80/lichee
if [ ! -d linux-3.10 ]; then
# 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
cd ../
fi
cd linux-3.10
git pull
cd ../
cd ../../
if [ ! -f .001-wifi.patch.done ]; then
patch -p1 < 001-wifi.patch
touch .001-wifi.patch.done
fi
if [ ! -f .002-wifi.patch.done ]; then
patch -p1 < 002-wifi.patch
touch .002-wifi.patch.done
fi
# build linux kernel
if [ ! -f android-a80/lichee/buildroot/dl/gcc-linaro.tar.bz2 ]; then
mkdir android-a80/lichee/buildroot/dl
cp gcc-linaro.tar.bz2 android-a80/lichee/buildroot/dl
fi
if [ ! -f android-a80/lichee/.buildconfig ]; then
cp dot.buildconfig android-a80/lichee/.buildconfig
fi
if [ ! -f android-a80/lichee/build.sh ]; then
cd android-a80/lichee
cp buildroot/scripts/top_build.sh build.sh
cd ../../
fi
cd android-a80/lichee
./build.sh
if [ $? -ne 0 ]; then
exit 1
fi
cd ../../
# build android
cd android-a80/android
source build/envsetup.sh
lunch kylin_optimus-eng
extract-bsp
make -j16
if [ $? -ne 0 ]; then
exit 1
fi
cd ../../
|