个人工具
登录
查看“内核交叉编译工具链”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“内核交叉编译工具链”的源代码
来自Ubuntu中文
←
内核交叉编译工具链
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
== 内核交叉编译工具链 == MIPS内核交叉编译工具链的制作 === 编译binutils === <pre> #!/bin/sh export CROSS_HOST="x86_64-unknown-linux-gnu" export CROSS_TARGET="x86_64-regulus-linux-gnu" CROSS-TOOLS="/cross-tools" mkdir -pv ${CROSS-TOOLS} && wget http://mirrors.ustc.edu.cn/gnu/binutils/binutils-2.23.1.tar.gz && tar -xvpf binutils-2.23.1.tar.gz && cd binutils-2.23.1 && mkdir build-binutils && cd build-binutils AR=ar AS=as ../configure --prefix=/cross-tools --build=${CROSS_HOST} --host=${CROSS_HOST} --target=${CROSS_TARGET} --disable-nls --enable-shared --disable-static --enable-64-bit-bfd --disable-multilib make configure-host make -j32 make install </pre> === gmp === <pre> wget http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2 tar -xvpf gmp-5.0.5.tar.bz2 cd gmp-5.0.5 CPPFLAGS=-fexceptions ./configure --prefix=/cross-tools --enable-cxx --disable-static make && make install </pre> === mpfr === <pre> wget http://www.mpfr.org/mpfr-3.1.1/mpfr-3.1.1.tar.xz tar -xvpf mpfr-3.1.1.tar.xz cd mpfr-3.1.1 LDFLAGS="-Wl,-rpath,/cross-tools/lib" ./configure --prefix=/cross-tools --enable-shared --disable-static --with-gmp=/cross-tools make && make install </pre> === mpc === <pre> wget http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz tar -xvpf mpc-1.0.1.tar.gz cd mpc-1.0.1 LDFLAGS="-Wl,-rpath,/cross-tools/lib" ./configure --prefix=/cross-tools --disable-static --with-gmp=/cross-tools --with-mpfr=/cross-tools make && make install </pre> === 编译gcc === <pre> # export PATH=/cross-tools/bin:$PATH mkdir -pv ./build-gcc cd ./build-gcc ../configure --prefix=/cross-tools --build=${CROSS_HOST} --host=${CROSS_HOST} --target=${CROSS_TARGET} \ --with-mpfr=/cross-tools --with-gmp=/cross-tools \ --with-newlib \ --disable-nls \ --disable-shared \ --disable-static \ --disable-threads \ --disable-multilib \ --enable-languages=c \ make all-gcc make install-gcc export PATH=/cross-tools/bin:$PATH export LD_LIBRARY_PATH=/cross-tools/lib make CROSS_COMPILE=/cross-tools/bin/mips64el-neokylin-linux-gnu- ARCH=mips </pre> 可选项 --with-abi=64 make all-target-libgcc make install-all-target-libgcc --with-ppl=/cross-tools --with-cloog=/cross-tools
返回至
内核交叉编译工具链
。