-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sh
executable file
·59 lines (46 loc) · 1.14 KB
/
build.sh
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
#!/bin/bash
#get changes from GitHub
echo 'Get changes from GitHub'
git pull
echo 'Start building...'
# Set options
export ARCH=arm CROSS_COMPILE=../toolchain/linaro-4.9/bin/arm-linux-androideabi-
export KBUILD_BUILD_USER=assusdan
export KBUILD_BUILD_HOST=SRT
#For checking errors
echo 'Remove kernel...'
rm -rf arch/arm/boot/zImage
echo 'Configure CS'
make zerasrs_cs_defconfig >/dev/null
echo 'Build CS'
make -j4 zImage >/dev/null 2>build.log
#check errors
if [ ! -f arch/arm/boot/zImage ]
then
echo "BUID ERRORS!"
fi
#if OK
echo 'Moving CS'
mv arch/arm/boot/zImage /var/www/html/zImage_CS
echo 'Configure DJN'
make zerasrs_dijing_defconfig >/dev/null
echo 'Build DJN'
make -j4 zImage >/dev/null 2>build.log
#check errors in DJN driver
if [ ! -f arch/arm/boot/zImage ]
then
echo "DJN PART ERROR"
fi
echo 'Moving DJN'
mv arch/arm/boot/zImage /var/www/html/zImage_DJN
#write worktime
echo $[$SECONDS / 60]
echo 'minutes'
echo $[$SECONDS % 60]
echo 'seconds'
#echo 'Configure A'
#make zerasra_defconfig >/dev/null
#echo 'Build A'
#make -j4 zImage >/dev/null 2>buildlog.log
#echo 'Moving A'
#mv arch/arm/boot/zImage /var/www/html/zImage_A