File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,16 @@ USE_LOCAL_LIBUSB=yes ./openocd.build.bash
15
15
16
16
if [[ -f objdir/bin/openocd ]] ;
17
17
then
18
- cd objdir/bin
19
- mv openocd openocd.bin
20
- echo " #!/bin/bash" >> openocd
21
- echo " DYLD_LIBRARY_PATH=\"\$ (dirname \$ 0)/../lib\" \$ 0.bin \"\$ 1\" \"\$ 2\" \"\$ 3\" \"\$ 4\" \"\$ 5\" \"\$ 6\" \"\$ 7\" \"\$ 8\" " >> openocd
22
- chmod +x openocd
23
- cd -
18
+ strip --strip-all objdir/bin/openocd
19
+ mv objdir/bin/openocd objdir/bin/openocd.bin
20
+ cp launchers/openocd.mac objdir/bin/openocd
21
+ chmod +x objdir/bin/openocd
24
22
fi
25
23
24
+ ARCH=` gcc -v 2>&1 | awk ' /Target/ { print $2 }' `
25
+
26
+ rm -rf OpenOCD-0.9.0-dev-arduino
27
+ rm -f OpenOCD-0.9.0-dev-arduino-$ARCH .tar.bz2
28
+ mv objdir OpenOCD-0.9.0-dev-arduino
29
+ tar cfvj OpenOCD-0.9.0-dev-arduino-$ARCH .tar.bz2 OpenOCD-0.9.0-dev-arduino
30
+
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- OS=` uname -o`
3
+ OS=` uname -o || uname `
4
4
5
5
if [[ $OS == " GNU/Linux" ]] ;
6
6
then
24
24
exit 0
25
25
fi
26
26
27
+ if [[ $OS == " Darwin" ]] ;
28
+ then
29
+ ./arch.mac.build.bash
30
+ exit 0
31
+ fi
32
+
27
33
echo OS Not supported: $OS
28
34
exit 2
29
35
You can’t perform that action at this time.
0 commit comments