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软件包,还需要进行编译。