File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1
- dd7f3653d4a3ce255801129d5d9d10b770bbd71a
1
+ ae41d02295b772b2ff3e05c97f9d5e8602f10fa7
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ echo " About to cross-compile Serial Port JSON Server"
4
+ # echo '$0 = ' $0
5
+ # echo '$1 = ' $1
6
+ # echo '$2 = ' $2
7
+
8
+ if [ " $1 " = " " ]; then
9
+ echo " You need to pass in the version number as the first parameter."
10
+ exit
11
+ fi
12
+
13
+ # turn on echo
14
+ set -x
15
+ # set -v
16
+
17
+ # Windows x32 and x64, Linux
18
+ goxc -bc=windows,linux -d=" ." -pv=$1 -tasks-=pkg-build default -GOARM=6
19
+
20
+ # Rename arm to arm6
21
+ # set +x
22
+ FILE=$1 ' /serial-port-json-server_' $1 ' _linux_arm.tar.gz'
23
+ FILE2=$1 ' /serial-port-json-server_' $1 ' _linux_armv6.tar.gz'
24
+ # set -x
25
+ mv $FILE $FILE2
26
+
27
+ # Special build for armv7 for BBB and Raspi2
28
+ goxc -bc=linux,arm -d=" ." -pv=$1 -tasks-=pkg-build default -GOARM=7
29
+ FILE3=$1 ' /serial-port-json-server_' $1 ' _linux_armv7.tar.gz'
30
+ mv $FILE $FILE3
31
+
32
+ # Special build for armv8
33
+ goxc -bc=linux,arm -d=" ." -pv=$1 -tasks-=pkg-build default -GOARM=8
34
+ FILE4=$1 ' /serial-port-json-server_' $1 ' _linux_armv8.tar.gz'
35
+ mv $FILE $FILE4
36
+
You can’t perform that action at this time.
0 commit comments