https://wiki.ubuntu.org.cn/index.php?title=%E5%86%85%E6%A0%B8%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E5%B7%A5%E5%85%B7%E9%93%BE&feed=atom&action=history
内核交叉编译工具链 - 版本历史
2024-03-29T11:08:37Z
本wiki的该页面的版本历史
MediaWiki 1.26.3
https://wiki.ubuntu.org.cn/index.php?title=%E5%86%85%E6%A0%B8%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E5%B7%A5%E5%85%B7%E9%93%BE&diff=149541&oldid=prev
Manbuzhe:/* 内核交叉编译工具链 */
2013-01-18T02:36:56Z
<p><span dir="auto"><span class="autocomment">内核交叉编译工具链</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='zh-Hans'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">←上一版本</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">2013年1月18日 (五) 02:36的版本</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >第1行:</td>
<td colspan="2" class="diff-lineno">第1行:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== 内核交叉编译工具链 ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== 内核交叉编译工具链 ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">内核交叉编译工具链的制作</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">MIPS内核交叉编译工具链的制作</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== 编译binutils ===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== 编译binutils ===</div></td></tr>
</table>
Manbuzhe
https://wiki.ubuntu.org.cn/index.php?title=%E5%86%85%E6%A0%B8%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91%E5%B7%A5%E5%85%B7%E9%93%BE&diff=149540&oldid=prev
Manbuzhe:以内容'== 内核交叉编译工具链 == 内核交叉编译工具链的制作 === 编译binutils === <pre> #!/bin/sh export CROSS_HOST="x86_64-unknown-linux-gnu" export CROSS_TA…'创建新页面
2013-01-18T02:35:21Z
<p>以内容'== 内核交叉编译工具链 == 内核交叉编译工具链的制作 === 编译binutils === <pre> #!/bin/sh export CROSS_HOST="x86_64-unknown-linux-gnu" export CROSS_TA…'创建新页面</p>
<p><b>新页面</b></p><div>== 内核交叉编译工具链 ==<br />
<br />
内核交叉编译工具链的制作<br />
<br />
=== 编译binutils ===<br />
<pre><br />
#!/bin/sh<br />
export CROSS_HOST="x86_64-unknown-linux-gnu"<br />
export CROSS_TARGET="x86_64-regulus-linux-gnu"<br />
<br />
CROSS-TOOLS="/cross-tools"<br />
<br />
mkdir -pv ${CROSS-TOOLS} &&<br />
wget http://mirrors.ustc.edu.cn/gnu/binutils/binutils-2.23.1.tar.gz && <br />
tar -xvpf binutils-2.23.1.tar.gz && <br />
cd binutils-2.23.1 && <br />
mkdir build-binutils && <br />
cd build-binutils<br />
<br />
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<br />
make configure-host<br />
make -j32<br />
make install<br />
</pre><br />
<br />
=== gmp ===<br />
<pre><br />
wget http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2<br />
tar -xvpf gmp-5.0.5.tar.bz2<br />
cd gmp-5.0.5<br />
CPPFLAGS=-fexceptions ./configure --prefix=/cross-tools --enable-cxx --disable-static<br />
make && make install<br />
</pre><br />
=== mpfr ===<br />
<pre><br />
wget http://www.mpfr.org/mpfr-3.1.1/mpfr-3.1.1.tar.xz<br />
tar -xvpf mpfr-3.1.1.tar.xz<br />
cd mpfr-3.1.1<br />
LDFLAGS="-Wl,-rpath,/cross-tools/lib" ./configure --prefix=/cross-tools --enable-shared --disable-static --with-gmp=/cross-tools<br />
make && make install<br />
</pre><br />
=== mpc ===<br />
<pre><br />
wget http://www.multiprecision.org/mpc/download/mpc-1.0.1.tar.gz<br />
tar -xvpf mpc-1.0.1.tar.gz<br />
cd mpc-1.0.1<br />
LDFLAGS="-Wl,-rpath,/cross-tools/lib" ./configure --prefix=/cross-tools --disable-static --with-gmp=/cross-tools --with-mpfr=/cross-tools<br />
make && make install<br />
</pre><br />
=== 编译gcc ===<br />
<pre><br />
# export PATH=/cross-tools/bin:$PATH<br />
<br />
mkdir -pv ./build-gcc<br />
cd ./build-gcc<br />
../configure --prefix=/cross-tools --build=${CROSS_HOST} --host=${CROSS_HOST} --target=${CROSS_TARGET} \<br />
--with-mpfr=/cross-tools --with-gmp=/cross-tools \<br />
--with-newlib \<br />
--disable-nls \<br />
--disable-shared \<br />
--disable-static \<br />
--disable-threads \<br />
--disable-multilib \<br />
--enable-languages=c \<br />
<br />
make all-gcc<br />
make install-gcc<br />
<br />
export PATH=/cross-tools/bin:$PATH<br />
export LD_LIBRARY_PATH=/cross-tools/lib<br />
make CROSS_COMPILE=/cross-tools/bin/mips64el-neokylin-linux-gnu- ARCH=mips<br />
</pre> <br />
可选项<br />
--with-abi=64<br />
make all-target-libgcc <br />
make install-all-target-libgcc<br />
--with-ppl=/cross-tools --with-cloog=/cross-tools</div>
Manbuzhe