-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcross-android-release.sh
executable file
·83 lines (75 loc) · 2.7 KB
/
cross-android-release.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
#!/bin/bash
prompt="Pick the target platform:"
chip_options=("a33" \
"h8" \
"h3" \
"rk3036" \
"rk3126" \
"rk3128" \
"rk322x" \
"atm7039-action" \
"aml-s805" \
"aml-s905" \
"aml-t950" \
"xm-hi3518" \
"v66")
PLATFORM=""
select opt in "${chip_options[@]}" "Quit"; do
case "$REPLY" in
1 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
2 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
3 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
4 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
5 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
6 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
7 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
8 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
9 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
10 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
11 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
12 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
13 ) echo "${chip_options[$REPLY-1]} is option";PLATFORM=${chip_options[$REPLY-1]};break;;
$(( ${#chip_options[@]}+1 )) ) echo "Goodbye!"; break;;
*) echo "Invalid option. Try another one.";continue;;
esac
done
if [ "$PLATFORM" != "" ]; then
./ver_info.pl include/ssv_version.h
if [ $? -eq 0 ]; then
echo "Please check SVN first !!"
else
cp platforms/platform-config.mak .
cp platforms/$PLATFORM.cfg ssv6x5x.cfg
cp platforms/$PLATFORM-generic-wlan.c ssv6x5x-generic-wlan.c
cp platforms/$PLATFORM-wifi.cfg image/ssv6x5x-wifi.cfg
cp platforms/$PLATFORM-wifi.cfg ssv6x5x-wifi.cfg
cp Makefile.android Makefile
# Remove garbage
svn rm wpa_supplicant.conf
svn rm unload.sh
svn rm sta.cfg
svn rm ssvcfg.sh
svn rm rules.mak
svn rm remove_old_driver.sh
svn rm load.sh
svn rm launch_sta_ap.sh
svn rm launch_ap_sta.sh
svn rm config.mak
svn rm cli
svn rm clean_log.sh
svn rm ap_shutdown.sh
svn rm ap_launch.sh
svn rm ap_check.sh
svn rm ap.cfg
svn rm build.sh
svn rm linux-build.sh
svn rm android-build.sh
svn rm cross-linux-release.sh
svn rm Makefile.*
svn rm platforms/* --force
svn rm platforms --force
echo "Done ko!"
fi
else
echo "Fail!"
fi