File tree Expand file tree Collapse file tree 2 files changed +5
-24
lines changed Expand file tree Collapse file tree 2 files changed +5
-24
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -20,37 +20,18 @@ OUTPUT_VERSION=0.10.0-arduino7-static
20
20
export OS=` uname -o || uname`
21
21
export TARGET_OS=$OS
22
22
23
- if [ -d tools ]; then
24
- rm -rf tools
23
+ if [ x $CROSS_COMPILER == x ]; then
24
+ CROSS_COMPILER= ${CROSS_COMPILE} -gcc
25
25
fi
26
26
27
- ./make_prereq.sh
28
- export PATH=$PWD /tools/bin:$PATH
27
+ OUTPUT_TAG=` $CROSS_COMPILER -v 2>&1 | awk ' /Target/ { print $2 }' `
29
28
30
- which automake
31
-
32
- if [[ $CROSS_COMPILE == " mingw" ]] ; then
33
-
34
- ./compile_win_openocd.sh
35
-
36
- else
37
-
38
- ./compile_unix_openocd.sh
39
-
40
- fi
41
-
42
- rm -f * .zip
43
- rm -f * .bz2
29
+ ./compile_cross.sh
44
30
45
31
cd distrib
46
- OUTPUT_TAG=` ls`
47
- if [[ $CROSS_COMPILE == " mingw" ]] ; then
32
+ if [[ $CROSS_COMPILE == * mingw* ]] ; then
48
33
zip -r ../openocd-${OUTPUT_VERSION} -${OUTPUT_TAG} .zip *
49
34
else
50
35
tar -cjvf ../openocd-${OUTPUT_VERSION} -${OUTPUT_TAG} .tar.bz2 *
51
36
fi
52
37
cd -
53
-
54
-
55
-
56
-
You can’t perform that action at this time.
0 commit comments