[Tinyos-commits] CVS: tinyos-1.x/tools/release/external-tools
gcc.spec, NONE, 1.1 binutils.spec, NONE, 1.1
Kristin Wright
kristinwright at users.sourceforge.net
Wed Jun 15 13:57:59 PDT 2005
Update of /cvsroot/tinyos/tinyos-1.x/tools/release/external-tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26173
Added Files:
gcc.spec binutils.spec
Log Message:
multi-platform, multi-target spec files
--- NEW FILE: gcc.spec ---
#
# The source must be in a tgz with the
# name %{target}-%{version}-binutils.tgz.
# When unfolded, the top-level directory
# must be %{target}-%{version}.
#
#
# 03/14/2005 xscale
# target: xscale-elf
# version: 3.4.3
# release: 1
#
%define target xscale-elf
%define version 3.4.3
%define release 1
%define name %{target}-gcc
%define theprefix /usr
%define source %{name}-%{version}.tgz
Summary: gcc compiled for the %{target} platform
Name: %{name}
Version: %{version}
Release: %{release}
Packager: kwright, TinyOS Group, UC Berkeley
License: GNU GPL
Group: Development/Tools
URL: ftp://ftp.gnu.org/pub/gnu/gcc/gcc-3.4.3/gcc-3.4.3.tar.bz2
Source0: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-root
%description
gcc compiled for the %{target} platform. The tarfile was renamed
to %{target}-gcc* to reflect the purpose.
%prep
%setup -q
%build
./configure --target=%{target} --enable-languages=c --disable-nls --prefix=%{theprefix}
make
%install
rm -rf %{buildroot}%{theprefix}
make prefix=%{buildroot}%{theprefix} install
cd %{buildroot}%{theprefix}
rm info/dir
rm lib/libiberty.a
%clean
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
rm -rf $RPM_SOURCE_DIR/%{name}-%{version}
%files
%defattr(-,root,root,-)
%{theprefix}
%doc
%changelog
* Mon Mar 14 2005 root <kwright at cs.berkeley.edu> 3.4.3
- Initial build for multi-platform, multi-target
--- NEW FILE: binutils.spec ---
#
# The source must be in a tgz with the
# name %{target}-%{version}-binutils.tgz.
# When unfolded, the top-level directory
# must be %{target}-%{version}.
#
# 03/14/2005 xscale
# target: xscale-elf
# version: 2.15
# release: 1
#
# 03/25/2005 avr
# target: avr
# version: 2.15tinyos
# release: 2
#
%define target avr
%define version 2.15tinyos
%define release 2
%define name %{target}-binutils
%define theprefix /usr
%define source %{name}-%{version}.tgz
Summary: GNU binutils for the %{target} platform
Name: %{name}
Version: %{version}
Release: %{release}
Packager: kwright, TinyOS Group, UC Berkeley
URL: http://ftp.gnu.org/gnu/binutils/
Source0: %{source}
License: GNU GPL
Group: Development/Tools
BuildRoot: %{_tmppath}/%{name}-root
%description
The GNU Binutils are a collection of binary tools. The main tools are
ld and as. This particular collection contains a patched as for
use with TinyOS 1.2+ on the %{target} platform. The patch allows
NesC to use the $ character within symbols to separate component
names and variable names.
%prep
%setup -q
%build
./configure --target=%{target} --prefix=%{theprefix}
make
%install
rm -rf %{buildroot}%{theprefix}
make prefix=%{buildroot}%{theprefix} install
cd %{buildroot}%{theprefix}
rm -rf info share
rm lib/libiberty.a
%clean
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
rm -rf $RPM_SOURCE_DIR/%{name}-%{version}
%files
%defattr(-,root,root)
%{theprefix}
%doc
%changelog
* Tue Mar 11 2005 kwright <kwright at cs.berkeley.edu>
- Initial version for multi-platform, multi-target.
More information about the Tinyos-commits
mailing list