forked from OpenIPC/firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilding.sh
executable file
·104 lines (84 loc) · 2.46 KB
/
building.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
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
#!/bin/bash
#
clone() {
sudo apt-get update -y ; apt-get install -y bc build-essential git unzip
git clone --depth=1 https://github.com/OpenIPC/openipc-2.1.git
}
fresh() {
make distclean #clean
[ -d buildroot* ] && echo -e "\nBuildroot found, OK\n" || make prepare
}
rename() {
mv -v ./output/images/rootfs.squashfs ./output/images/rootfs.squashfs.${soc}
mv -v ./output/images/uImage ./output/images/uImage.${soc}
}
upload() {
server="[email protected]:/sync/Archive/Incoming/Tftp/"
echo -e "\n\nStart transferring files to the TFTP server...\n"
scp -P 22 -r ./output/images/rootfs.squashfs.* ./output/images/uImage.* ${server}
echo -e "\n"
date
}
sdk() {
make br-sdk
}
hi3516cv100() {
soc="hi3516cv100"
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_unknown all && rename
}
hi3516cv200() {
soc="hi3516cv200"
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_unknown all && rename
}
hi3516cv300() {
soc="hi3516cv300"
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_${soc}_unknown all && rename
}
hi3516ev200() {
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516ev200_openipc all && rename
}
hi3516ev300() {
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516ev300_openipc all && rename
}
hi3516ev300_dev() {
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516ev300_dev all && rename
}
hi3516ev300_glibc() {
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516ev300_glibc all && rename
}
hi3516ev300_tehshield() {
fresh && make PLATFORM=hisilicon BOARD=unknown_unknown_hi3516ev300_tehshield all && rename
}
ssc335() {
fresh && make PLATFORM=sigmastar BOARD=unknown_unknown_ssc335_openipc all && rename
}
ssc335_blackbird() {
fresh && make PLATFORM=sigmastar BOARD=unknown_unknown_ssc335_blackbird all && rename
}
xm530() {
fresh && make PLATFORM=xiongmai BOARD=unknown_unknown_xm530_openipc all && rename
}
# Build firmware
#
# hi3516cv100 # testing..
# hi3516cv200 # testing..
# hi3516cv300 # testind..
#
# hi3516ev200 # OK
#
# hi3516ev300 # OK
# hi3516ev300_dev # testing..
# hi3516ev300_glibc # testing..
# hi3516ev300_tehshield # partner..
#
# ssc335 # OK
# ssc335_blackbird # partner..
#
# xm530 # OK
#
#
#
# More examples
#
# make PLATFORM=sigmastar br-linux-{dirclean,rebuild}
#