README
7.67 KB
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
1. 임의의 디렉토리에 toolchain_4.6.3_ubuntu_12.04_make.tar.gz 압축을 푼다.
# mkdir /tmp_tool
# cd /tmp_tool
# tar -zxvf toolchain_4.6.3_ubuntu_12.04_make.tar.gz
2. 압축을 풀면 다음과 같은 디렉토리와 파일들이 생성된다.
# ls
deb
arm-linux-gnueabihf-4.6.3.tar.gz
toolchain-4.6.3-deb_make.sh
toolchain-4.6.3-install.sh
3. 툴체인만 설치할 경우 아래와 같이 설정하면 된다.
# ./toolchain-4.6.3-install.sh
# ls /usr/arm-linux-gnueabihf
bin include lib
# arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/arm-linux-gnueabihf/include/c++/4.6.3 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --disable-werror --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include --with-headers=/usr/arm-linux-gnueabihf/include --with-libs=/usr/arm-linux-gnueabihf/lib
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
4. 툴체인을 만들고, 설치할 경우 아래와 같이 설정하면 된다.
# ./toolchain-4.6.3-deb_make.sh
# ./toolchain-4.6.3-install.sh