构建交叉编译工具链完全手册
+ test '' = ''
+ test '' = 1
+ test -d /home/mike/crosstool-0.43/build/arm-linux/gcc-3.4.5-glibc-2.3.6
+ mkdir -p /home/mike/crosstool-0.43/build/arm-linux/gcc-3.4.5-glibc-2.3.6
mkdir: cannot create directory `/home/mike/crosstool-0.43/build': Permission denied
[mike@localhost crosstool-0.43]$ su
Password:
[root@localhost crosstool-0.43]# ./arm.sh
问题二:S3C2440芯片没有硬件浮点数(hardfloat),很多软件只能采用软件浮点数(softfloat)的编译器编译,恰巧现在高版本的u-boot只能采用支持softfloat的交叉编译器编译,否则会在编译结束前的链接那一步出现不支持softfloat的错误。 解决办法:要解决这个错误的唯一办法就是采用支持softfloat的交叉编译器编译uboot。下面来说一下制作softfloat的具体过程。
和上述制作交叉编译器过程一样,不同之处:1.修改arm.dat内容如下,参考arm-softfloat.dat内容修改。
KERNELCONFIG=`pwd`/arm.config
TARGET=arm-softfloat-linux
TARGET_CFLAGS="-O"
GCC_EXTRA_CONFIG="--with-float=soft"
GLIBC_EXTRA_CONFIG="--without-fp"
编译完之后,会在/opt/crosstool/gcc-3.4.5-glibc-2.3.6/arm-softfloat-linux/bin生成支持softfloat的交叉编译器,如下所示。
arm-softfloat-linux-addr2line arm-softfloat-linux-g++ arm-softfloat-linux-ld arm-softfloat-linux-size arm-softfloat-linux-ar arm-softfloat-linux-gcc arm-softfloat-linux-nm arm-softfloat-linux-strings arm-softfloat-linux-as arm-softfloat-linux-gcc-3.4.5 arm-softfloat-linux-objcopy arm-softfloat-linux-strip
arm-softfloat-linux-c++ arm-softfloat-linux-gccbug arm-softfloat-linux-
objdump fix-embedded-paths arm-softfloat-linux-c++filt arm-softfloat-linux-gcov arm-softfloat-linux-ranlib arm-softfloat-linux-cpp arm-softfloat-linux-gprof arm-softfloat-linux-readelf
制作好的交叉编译工具链下载及使用【转载】 安装方法在文章后面最常用的编译版本是 arm-linux-gcc-2.95.3、arm-linux-gcc-3.4.1 和 arm-linux-3.3.2 的...
远见品质 交叉编译的过程 远见品质 v 第1步,取得Binutils、GCC、Glibc 源码。 v 第2步,配置并编译Binutils 取得我们所需 GCC交叉编译器的生 成 要的汇编和连接...
构建工具的过程中识别工具的正确版本.因为编译交叉工具 链的过程中会有两套编译器环境, 链的过程中会有两套编译器环境,明确了平台名称和格式才 能保证生成工具不...
经典=建立交叉编译工具链方法2(CrossTool=成功试验)(支持软-硬浮点)_计算机软件及应用_IT/计算机_专业资料。本帅按照以下步骤成功在红帽企业版 5 上安装交叉编译工...
利用crosstool-ng构建交叉编译工具链_专业资料。该文通过crosstool—ng脚本工具,提出了一种在Linux构建交叉编译环境的实用方法,尤其方便于对ARM等微处理器的编译,具有...
ARM 交叉编译工具链的构建交叉编译 :通俗的讲就是在一种平台上(我们平常用的电脑是 X86 体系结构)编译出能运行在体系结构不同的另一种平台上(ARM)的程序构建...
ftp.gnu. .bz2 tar.gz org gcc-3.3.6.tar.gz ftp.gnu.org 通过相关站点下载以上资源后,就可以开始建立交叉编译工具链了。 安装包 1.建立工作目录 首先...
Crosstool_HOWTO 快速构建交叉编译工具链Crosstool_HOWTO 快速构建交叉编译工具链隐藏>> Crosstool HOWTO->快速构建交叉编译工具链 crosstool 官方 HOWTO-> http://keg...
crosstool创建交叉编译工具链(Ubuntu)_IT/计算机_专业资料。crosstool创建交叉编译工具链(Ubuntu)ubuntu 下用 crosstool 建立交叉编译工具链用到的源码包如下, 建议全部...
用crosstool构建基于ARM的交叉编译工具链(详细版)_IT/计算机_专业资料。用cross...别人编译的 工具链无法完全适应于自己所使用的环境,而且也会出现一些莫名其妙的...
热门文档