-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild-imx6.sh
More file actions
executable file
·116 lines (99 loc) · 2.17 KB
/
build-imx6.sh
File metadata and controls
executable file
·116 lines (99 loc) · 2.17 KB
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
109
110
111
112
113
114
115
116
#!/bin/bash -x
source /opt/poky/1.8/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
export DATE=$(date +"%b-%d-%Y")
FAIL=0
rm -rf out
mkdir out > /dev/null 2>&1
case "$1" in
ts4900)
make ts4900-q-2g-1000mhz-c_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts4900-q-2g-1000mhz-c-"$DATE".imx
else
let FAIL=FAIL+1
fi
make ts4900-s-1g-1000mhz-c_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts4900-s-1g-1000mhz-c-"$DATE".imx
else
let FAIL=FAIL+1
fi
make ts4900-s-1g-1000mhz-c-2_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts4900-s-1g-1000mhz-c-2-"$DATE".imx
else
let FAIL=FAIL+1
fi
make ts4900-s-1g-800mhz-i_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts4900-s-1g-800mhz-i-"$DATE".imx
else
let FAIL=FAIL+1
fi
make ts4900-s-2g-800mhz-i_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts4900-s-2g-800mhz-i-"$DATE".imx
else
let FAIL=FAIL+1
fi
;;
ts7970)
make ts7970-q-2g-1000mhz-c_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts7970-q-2g-1000mhz-c-"$DATE".imx
else
let FAIL=FAIL+1
fi
make ts7970-s-1g-1000mhz-c_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts7970-s-1g-1000mhz-c-"$DATE".imx
else
let FAIL=FAIL+1
fi
make ts7970-s-1g-800mhz-i_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts7970-s-1g-800mhz-i-"$DATE".imx
else
let FAIL=FAIL+1
fi
make ts7970-s-512m-1000mhz-c_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts7970-s-512m-1000mhz-c-"$DATE".imx
else
let FAIL=FAIL+1
fi
;;
ts7990)
make ts7990-q-1g-1000mhz-c_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts7990-q-1g-1000mhz-c-"$DATE".imx
else
let FAIL=FAIL+1
fi
make ts7990-s-1g-800mhz-i_defconfig
make -j9 u-boot.imx
if [ $? -eq 0 ]; then
cp u-boot.imx out/ts7990-s-1g-800mhz-i-"$DATE".imx
else
let FAIL=FAIL+1
fi
;;
*)
echo "Usage: ./build-imx6.sh <model># Model being ts4900, ts7970, ts7990, etc"
exit 1
esac
if [ $FAIL != 0 ]; then
echo "$FAIL BUILDS FAILED. DO NOT RELEASE"
exit 1
fi
exit 0