Chinaunix首页 | 论坛 | 博客
  • 博客访问: 396581
  • 博文数量: 380
  • 博客积分: 75
  • 博客等级: 民兵
  • 技术积分: 1925
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-05 15:35
文章分类

全部博文(380)

文章存档

2014年(1)

2013年(2)

2012年(19)

2011年(358)

我的朋友

分类:

2011-09-05 18:36:03

原文地址:交叉编译工具链 作者:chenxibing008

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软件包,还需要进行编译。
阅读(258) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~