交叉编译工具链

armvfp-4.3.2

    有两种形式的工具链 tc-nxp-lnx-armvfp-4.3.2-1.src.rpm 和 tc-nxp-lnx-armvfp-4.3.2-1.src.rpm。
 

   tc-nxp-lnx-armvfp-4.3.2-1.rpm

    直接使用rpm -ivh命令安装即可。
 

   tc-nxp-lnx-armvfp-4.3.2-1.src.rpm

    查看所包含的内容:
[chenxibing@localhost lpc3250]$ rpm -qpl tc-nxp-lnx-armvfp-4.3.2-1.src.rpm
armtool.spec
tc-nxp-lnx-armvfp-4.3.2.tar.bz2
 
    普通用户安装,出错:
[chenxibing@localhost lpc3250]$ rpm -ivh tc-nxp-lnx-armvfp-4.3.2-1.src.rpm
error: cannot write to %sourcedir /usr/src/redhat/SOURCES
 
    root权限安装:
[chenxibing@localhost lpc3250]$ sudo rpm -ivh tc-nxp-lnx-armvfp-4.3.2-1.src.rpm
   1:tc-nxp-lnx-armvfp      warning: user usb10132 does not exist - using root
warning: group usb10132 does not exist - using root
warning: user usb10132 does not exist - using root
warning: group usb10132 does not exist - using root
########################################### [100%]
 
    查看,在SOURCES目录下只看到了一个文件:
[chenxibing@localhost lpc3250]$ ls /usr/src/redhat/SOURCES/
tc-nxp-lnx-armvfp-4.3.2.tar.bz2
 
    armtool.spec文件在SPECS目录下:
[chenxibing@localhost lpc3250]$ ls /usr/src/redhat/SPECS/
armtool.spec
 
    armtool.spec内容:
[chenxibing@localhost lpc3250]$ cat /usr/src/redhat/SPECS/armtool.spec
Summary: GNU indent
Name: tc-nxp-lnx-armvfp
Version: 4.3.2
Release: 1
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Development/Tools
AutoReqProv: no
%description
The GNU indent program reformats C code to any of a variety of
formatting standards, or you can define your own.
%prep
#%setup -q
%build
#./configure
#make
%install
#make install
%files
%defattr(-,root,root)
/opt/nxp/gcc-4.3.2-glibc-2.7/
 
    如果使用tc-nxp-lnx-armvfp-4.3.2.tar.bz2软件包,还需要进行编译。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值