參考這份文件(http://hi.baidu.com/caicry/blog/item/f306db639c4281680c33fa1b.html)所作的筆記。
【環境】
Ubuntu Linux 2.6.31-14 (Ubuntu 9.10),記得先把相關工具抓好。
$apt-get update $apt-get install build-essential $apt-get install sharutils exuberant-ctags zlib1g zlib1g-dev $apt-get install libncurses5 libncurses5-dev libgcc1 gcc gcc++ $apt-get install gdb expect bison flex makedepend $apt-get install gawk texi2html texinfo automake libtool cvs termcap $apt-get install git-core curl
【安裝】
安裝好之後最後跑一下 「ct-ng」 確定 ct-ng 版本。
$wget http://ymorin.is-a-geek.org/download/crosstool-ng/crosstool-ng-1.5.2.tar.bz2 $tar jxvf crosstool-ng-1.5.2.tar.bz2 $cd crosstool-ng-1.5.2 $./configure --prefix=/opt/crosstool-ng $make $make install $ct-ng -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i486-pc-linux-gnu
【使用】
(tbd)
Different with document…
$ mv glibc-cvs-2.9.tar.gz ~/src/$ mv glibc-ports-cvs-2.9.tar.gz ~/src
CT_KERNEL_VERSION=2.6.31.1
CT_LIBC_GLIBC_MIN_KERNEL=2.6.31.1