From 41083396da355614f097802a60ddbd28a58d8413 Mon Sep 17 00:00:00 2001 From: scipio Date: Tue, 12 Aug 2008 13:38:21 +0000 Subject: [PATCH] Spec files for external tools. --- tools/release/external-tools/avarice.spec | 48 ++++++++++++ tools/release/external-tools/avr-gcc.spec | 63 ++++++++++++++++ tools/release/external-tools/avr-insight.spec | 47 ++++++++++++ tools/release/external-tools/binutils.spec | 73 ++++++++++++++++++ tools/release/external-tools/msp430-libc.spec | 74 +++++++++++++++++++ .../external-tools/xscale-elf.gcc.spec | 62 ++++++++++++++++ 6 files changed, 367 insertions(+) create mode 100755 tools/release/external-tools/avarice.spec create mode 100755 tools/release/external-tools/avr-gcc.spec create mode 100755 tools/release/external-tools/avr-insight.spec create mode 100755 tools/release/external-tools/binutils.spec create mode 100755 tools/release/external-tools/msp430-libc.spec create mode 100755 tools/release/external-tools/xscale-elf.gcc.spec diff --git a/tools/release/external-tools/avarice.spec b/tools/release/external-tools/avarice.spec new file mode 100755 index 00000000..74f2d7a4 --- /dev/null +++ b/tools/release/external-tools/avarice.spec @@ -0,0 +1,48 @@ +%define theprefix /usr + +Summary: AVaRICE - an interface for Atmel JTAG ICE to GDB +Name: avarice +Version: 2.4 +Release: 1 +Packager: kwright, TinyOS Group, UC Berkeley +License: GNU GPL +Group: Development/Tools +URL: http://sourceforge.net/projects/avarice/ +Source0: avarice-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-root + +%description +AVaRICE compiled for the %{target} platform. +AVaRICE is a program interfacing the Atmel JTAG ICE to GDB. +Users can debug their embedded AVR target via the Atmel JTAG +ICE using GDB. + +%prep +%setup -q + +%build +./configure --prefix=/usr +make + +%install +rm -rf %{buildroot}%{theprefix} +make prefix=%{buildroot}%{theprefix} install + +%clean +rm -rf $RPM_BUILD_DIR/%(name)-%(version) +rm -rf $RPM_SOURCE_DIR/%(name)-%(version) + +%files +%defattr(-,root,root,-) +%{theprefix} +%doc + +%changelog +* Fri Feb 3 2006 kwright +- Update to avarice 2.4; create multi-platform file +* Tue Mar 1 2005 kwright +- Update for TinyOS 1.2 build. +* Mon Aug 18 2003 kwright +- Initial build. + + diff --git a/tools/release/external-tools/avr-gcc.spec b/tools/release/external-tools/avr-gcc.spec new file mode 100755 index 00000000..64378975 --- /dev/null +++ b/tools/release/external-tools/avr-gcc.spec @@ -0,0 +1,63 @@ +# +# 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 avr +%define version 4.1.2 +%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=/usr --disable-libssp +make + +%install +rm -rf %{buildroot}%{theprefix} +make prefix=%{buildroot}%{theprefix} install +cd %{buildroot}%{theprefix} +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 +* Sun Aug 10 2008 pal 4.1.2, avr +* Mon Mar 14 2005 root 3.4.3 +- Initial build for multi-platform, multi-target + + diff --git a/tools/release/external-tools/avr-insight.spec b/tools/release/external-tools/avr-insight.spec new file mode 100755 index 00000000..458b004e --- /dev/null +++ b/tools/release/external-tools/avr-insight.spec @@ -0,0 +1,47 @@ +%define theprefix /usr + +Summary: Insight GDB GUI +Name: avr-insight +Version: 6.3 +Release: 1 +Packager: TinyOS Group, UC Berkeley +License: GNU GPL +Group: Development/Tools +URL: httphttp://ftp.gnu.org/gnu/gdb/gdb-6.2.tar.gz +Source0: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-root + +%description +This package includes gdb and insight, a graphical user interface to GDB +written in Tcl/Tk originally by Red Hat and Cygnus. + +%prep +%setup -q + +%build +./configure --prefix=%{theprefix} --target=avr --with-gnu-ld --with-gnu-as --disable-nls +make + +%install +rm -rf %{buildroot}/usr/local +make prefix=%{buildroot}/usr/local install +cd %{buildroot}/usr/local +rm info/bfd.info* info/configure.info* info/dir info/standards.info +rm lib/libiberty.a + +%clean +rm -rf $RPM_BUILD_DIR/%{name}-%{version} +rm -rf $RPM_SOURCE_DIR/%{name}-%{version} + +%files +%defattr(-,root,root,-) +/usr/local +%doc + +%changelog +* Thu Aug 28 2003 root pre6.0cvs-1.2 +- Removed last of the file conflicts and changed name to avr-insight +* Fri Aug 15 2003 root pre6.0cvs-1 +- Initial build. + + diff --git a/tools/release/external-tools/binutils.spec b/tools/release/external-tools/binutils.spec new file mode 100755 index 00000000..d539cbf9 --- /dev/null +++ b/tools/release/external-tools/binutils.spec @@ -0,0 +1,73 @@ +# +# 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: 3 +# + +%define target avr +%define version 2.17tinyos +%define release 3 +%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 Jul 26 2005 kwright +- Increase release version for avr; old version did not have the $ + patch +* Tue Mar 11 2005 kwright +- Initial version for multi-platform, multi-target. + + diff --git a/tools/release/external-tools/msp430-libc.spec b/tools/release/external-tools/msp430-libc.spec new file mode 100755 index 00000000..5111d4f9 --- /dev/null +++ b/tools/release/external-tools/msp430-libc.spec @@ -0,0 +1,74 @@ +# +# The source must be in a tgz with the +# name %{target}-%{version}-binutils.tgz. +# When unfolded, the top-level directory +# must be %{target}-%{version}. +# +# avr: +# target: avr +# libname: libc +# version: 1.2.3 +# release: 1 +# url: http://savannah.nongnu.org/download/avr-libc/ +# +# xscale-elf: +# target: xscale-elf +# libname: newlib +# version: 1.11tinyos +# release: 1 +# url: ftp://sources.redhat.com/pub/newlib/newlib-1.11.0.tar.gz + +%define target msp430tools +%define libname libc +%define version 20080808 +%define release 1 +%define url http://savannah.nongnu.org/download/ +%define name %{target}-%{libname} +%define theprefix /opt +%define source %{name}-%{version}.tgz + +Summary: C library for the %{target} platform +Name: %{name} +Version: %{version} +Release: %{release} +Packager: TinyOS Group, UC Berkeley +License: GNU GPL-compatible +Group: Development/Tools +URL: %{url} +Source0: %{source} +BuildRoot: %{_tmppath}/%{name}-root + +%description +C library for the %{target} platform. + +%prep +%setup -q + +%build +# doconf can have additional configuration parameters +cd src +make + +%install +rm -rf %{buildroot}%{theprefix} +cd src +make prefix=%{buildroot}%{theprefix}/msp430 install +cd %{buildroot}%{theprefix} +rm -rf info + +%clean +rm -rf $RPM_BUILD_DIR/%{name}-%{version} +rm -rf $RPM_SOURCE_DIR/%{name}-%{version} + +%files +%{theprefix} +%defattr(-,root,root,-) +%doc + + +%changelog +* Fri Mar 10 2005 root 1.2.3-1 +- Initial version for multi-platform, multi-target + + + diff --git a/tools/release/external-tools/xscale-elf.gcc.spec b/tools/release/external-tools/xscale-elf.gcc.spec new file mode 100755 index 00000000..13e95261 --- /dev/null +++ b/tools/release/external-tools/xscale-elf.gcc.spec @@ -0,0 +1,62 @@ +# +# 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=/usr +make + +%install +rm -rf %{buildroot}%{theprefix} +make prefix=%{buildroot}%{theprefix} install +cd %{buildroot}%{theprefix} +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 3.4.3 +- Initial build for multi-platform, multi-target + + -- 2.39.2