• R/O
  • HTTP
  • SSH
  • HTTPS

installer: Commit

Ubuntuの設定スクリプト


Commit MetaInfo

Revision8b28cab11b4ecb5f0fadfc1e60632b7d2d8f4174 (tree)
Zeit2012-11-04 16:01:05
Autorsuikan <suikan@user...>
Commitersuikan

Log Message

最新ツールに対応するよう変更

Ändern Zusammenfassung

Diff

--- a/installer/installer
+++ b/installer/installer
@@ -1,23 +1,25 @@
11 #! /bin/sh
2-# sudo apt-get install eclipse doxygen g++ ckermit libftdi1 libftdi-dev libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev lv qemu-arm-static
3-sudo apt-get install eclipse doxygen g++ ckermit libftdi1 libftdi-dev libboost-all-dev lv qemu-arm-static libperl4-corelibs-perl
42
3+if [ -f arm-2012.03-56-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 ]; then
4+# when arm toolchain exists
5+
6+sudo apt-get install eclipse git eclipse-egit eclipse-cdt doxygen g++ ckermit libftdi1 libftdi-dev libboost-all-dev lv
57
68 # Tool chain
7-rm arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 -f
8-wget http://www.codesourcery.com/sgpp/lite/arm/portal/package6493/public/arm-none-eabi/arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
9-tar xvjf arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
9+# rm arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 -f
10+# wget http://www.codesourcery.com/sgpp/lite/arm/portal/package6493/public/arm-none-eabi/arm-2010q1-188-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
11+tar xvjf arm-2012.03-56-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
1012 sudo rm /opt/arm -f
11-sudo mv arm-2010q1 /opt -f
12-sudo ln /opt/arm-2010q1 /opt/arm -s
13+sudo mv arm-2012.03 /opt -f
14+sudo ln /opt/arm-2012.03 /opt/arm -s
1315
1416
1517 # OpenOCD
16-sudo rm openocd-0.4.0 -r -f
17-sudo rm openocd-0.4.0.tar.bz2
18-wget http://downloads.sourceforge.net/project/openocd/openocd/0.4.0/openocd-0.4.0.tar.bz2
19-tar xvjf openocd-0.4.0.tar.bz2
20-cd openocd-0.4.0
18+sudo rm openocd-0.6.1 -r -f
19+sudo rm openocd-0.6.1.tar.bz2
20+wget http://downloads.sourceforge.net/project/openocd/openocd/0.6.1/openocd-0.6.1.tar.bz2
21+tar xvjf openocd-0.6.1.tar.bz2
22+cd openocd-0.6.1
2123 ./configure --enable-ft2232_libftdi
2224 make
2325 sudo make install
@@ -28,9 +30,6 @@ cd ..
2830 # Run this program from some temporal directory
2931 echo 'export PATH=$PATH:/opt/lpc21isp' >> ~/.bashrc
3032 echo 'export PATH=$PATH:/opt/arm/bin' >> ~/.bashrc
31-# 以下の設定は、cfg 1.6.0には不要
32-# echo 'export BOOST_DIR=/usr/include/boost' >> ~/.bashrc
33-# echo 'export LIBBOOST_SUFFIX=-mt' >> ~/.bashrc
3433
3534
3635 echo 'export PATH=$PATH:/opt/lpc21isp' >> ~/.profile
@@ -52,15 +51,28 @@ sudo mv 50-ft2232.rules /etc/udev/rules.d
5251 sudo groupadd jtag
5352 sudo gpasswd -a `whoami` jtag
5453
55-# LPC21ispのインストール
56-rm lpc21isp-1.*.tar.gz -f
57-rm lpc21isp-1.* -r -f
58-wget http://downloads.sourceforge.net/project/lpc21isp/lpc21isp/1.79/lpc21isp-1.79.tar.gz
59-tar xvzf lpc21isp-1.79.tar.gz
54+
55+# LPC21isp installing
56+rm lpc21isp_1.*.tar.gz -f
57+rm lpc21isp_1.* -r -f
58+rm lpc21isp -r -f
59+mkdir lpc21isp
60+wget http://ftp.jaist.ac.jp/pub/sourceforge/l/lp/lpc21isp/lpc21isp/1.83/lpc21isp_183.tar.gz
6061 cd lpc21isp
62+tar xvzf ../lpc21isp_183.tar.gz
6163 make clean
6264 make
65+sudo rm /opt/lpc21isp -r -f
6366 sudo mkdir /opt/lpc21isp
6467 sudo mv lpc21isp /opt/lpc21isp
6568 cd ..
6669
70+
71+else
72+# when arm toolchain doesn't exist
73+echo "arm-2012.03-56-arm-none-eabi-i686-pc-linux-gnu.tar.bz2ファイルがありません。"
74+echo "CodeSourceryよりSourcery CodeBench Lite 2012.03-56 for ARM EABI の"
75+echo "Linux用Advanced版をダウンロードして、Installerと同じディレクトリに置いてください"
76+
77+
78+fi
Show on old repository browser