From cb31c9b86da4c18bbea05412b96ac240d8da14eb Mon Sep 17 00:00:00 2001 From: wennmach Date: Tue, 15 Jul 2003 21:46:26 +0000 Subject: First of a series of packages to support cross-development for Atmel AVR series microcontrollers. Provided by Karl Janmar in PR 22139, with several changes by myself. Original package from FreeBSD. --- cross/avr-binutils/DESCR | 2 + cross/avr-binutils/Makefile | 23 ++++++ cross/avr-binutils/PLIST | 147 ++++++++++++++++++++++++++++++++++++ cross/avr-binutils/distinfo | 8 ++ cross/avr-binutils/patches/patch-aa | 18 +++++ cross/avr-binutils/patches/patch-ab | 14 ++++ cross/avr-binutils/patches/patch-ac | 14 ++++ cross/avr-binutils/patches/patch-ad | 14 ++++ 8 files changed, 240 insertions(+) create mode 100644 cross/avr-binutils/DESCR create mode 100644 cross/avr-binutils/Makefile create mode 100644 cross/avr-binutils/PLIST create mode 100644 cross/avr-binutils/distinfo create mode 100644 cross/avr-binutils/patches/patch-aa create mode 100644 cross/avr-binutils/patches/patch-ab create mode 100644 cross/avr-binutils/patches/patch-ac create mode 100644 cross/avr-binutils/patches/patch-ad diff --git a/cross/avr-binutils/DESCR b/cross/avr-binutils/DESCR new file mode 100644 index 00000000000..b4580d3d6bf --- /dev/null +++ b/cross/avr-binutils/DESCR @@ -0,0 +1,2 @@ +GNU binutils for Atmel AVR 8 bit RISC microcontrollers. +Prerequisite for avr-gcc in a cross-compilation environment. diff --git a/cross/avr-binutils/Makefile b/cross/avr-binutils/Makefile new file mode 100644 index 00000000000..37a7830c778 --- /dev/null +++ b/cross/avr-binutils/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/07/15 21:46:26 wennmach Exp $ +# FreeBSD Id: ports/devel/avr-binutils/Makefile,v 1.9 2003/03/07 06:00:08 ade Exp + +DISTNAME= binutils-2.13.2.1 +PKGNAME= avr-binutils-2.13.2.1 +CATEGORIES= cross +MASTER_SITES= ${MASTER_SITE_SOURCEWARE:=binutils/releases/} + +MAINTAINER= karlj@mdstud.chalmers.se +COMMENT= GNU binutils for Atmel AVR 8-bit RISC microcontrollers + +USE_BZIP2= yes +USE_GMAKE= yes +CONFIGURE_ARGS= --target=avr --prefix=${PREFIX} +USE_LIBTOOL= yes +USE_PKGLOCALEDIR= yes +HAS_CONFIGURE= yes +LIBTOOLFILES= configure bfd/configure binutils/configure \ + etc/configure gas/configure gprof/configure \ + intl/configure ld/configure libiberty/configure \ + opcodes/configure + +.include "../../mk/bsd.pkg.mk" diff --git a/cross/avr-binutils/PLIST b/cross/avr-binutils/PLIST new file mode 100644 index 00000000000..916b32d8194 --- /dev/null +++ b/cross/avr-binutils/PLIST @@ -0,0 +1,147 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/15 21:46:26 wennmach Exp $ +avr/bin/ar +avr/bin/as +avr/bin/ld +avr/bin/nm +avr/bin/ranlib +avr/bin/strip +avr/lib/ldscripts/avr1.x +avr/lib/ldscripts/avr1.xbn +avr/lib/ldscripts/avr1.xn +avr/lib/ldscripts/avr1.xr +avr/lib/ldscripts/avr1.xu +avr/lib/ldscripts/avr1200.x +avr/lib/ldscripts/avr1200.xbn +avr/lib/ldscripts/avr1200.xn +avr/lib/ldscripts/avr1200.xr +avr/lib/ldscripts/avr1200.xu +avr/lib/ldscripts/avr2.x +avr/lib/ldscripts/avr2.xbn +avr/lib/ldscripts/avr2.xn +avr/lib/ldscripts/avr2.xr +avr/lib/ldscripts/avr2.xu +avr/lib/ldscripts/avr23xx.x +avr/lib/ldscripts/avr23xx.xbn +avr/lib/ldscripts/avr23xx.xn +avr/lib/ldscripts/avr23xx.xr +avr/lib/ldscripts/avr23xx.xu +avr/lib/ldscripts/avr3.x +avr/lib/ldscripts/avr3.xbn +avr/lib/ldscripts/avr3.xn +avr/lib/ldscripts/avr3.xr +avr/lib/ldscripts/avr3.xu +avr/lib/ldscripts/avr4.x +avr/lib/ldscripts/avr4.xbn +avr/lib/ldscripts/avr4.xn +avr/lib/ldscripts/avr4.xr +avr/lib/ldscripts/avr4.xu +avr/lib/ldscripts/avr4433.x +avr/lib/ldscripts/avr4433.xbn +avr/lib/ldscripts/avr4433.xn +avr/lib/ldscripts/avr4433.xr +avr/lib/ldscripts/avr4433.xu +avr/lib/ldscripts/avr44x4.x +avr/lib/ldscripts/avr44x4.xbn +avr/lib/ldscripts/avr44x4.xn +avr/lib/ldscripts/avr44x4.xr +avr/lib/ldscripts/avr44x4.xu +avr/lib/ldscripts/avr5.x +avr/lib/ldscripts/avr5.xbn +avr/lib/ldscripts/avr5.xn +avr/lib/ldscripts/avr5.xr +avr/lib/ldscripts/avr5.xu +avr/lib/ldscripts/avr85xx.x +avr/lib/ldscripts/avr85xx.xbn +avr/lib/ldscripts/avr85xx.xn +avr/lib/ldscripts/avr85xx.xr +avr/lib/ldscripts/avr85xx.xu +avr/lib/ldscripts/avrmega103.x +avr/lib/ldscripts/avrmega103.xbn +avr/lib/ldscripts/avrmega103.xn +avr/lib/ldscripts/avrmega103.xr +avr/lib/ldscripts/avrmega103.xu +avr/lib/ldscripts/avrmega161.x +avr/lib/ldscripts/avrmega161.xbn +avr/lib/ldscripts/avrmega161.xn +avr/lib/ldscripts/avrmega161.xr +avr/lib/ldscripts/avrmega161.xu +avr/lib/ldscripts/avrmega603.x +avr/lib/ldscripts/avrmega603.xbn +avr/lib/ldscripts/avrmega603.xn +avr/lib/ldscripts/avrmega603.xr +avr/lib/ldscripts/avrmega603.xu +bin/avr-addr2line +bin/avr-ar +bin/avr-as +bin/avr-c++filt +bin/avr-ld +bin/avr-nm +bin/avr-objcopy +bin/avr-objdump +bin/avr-ranlib +bin/avr-readelf +bin/avr-size +bin/avr-strings +bin/avr-strip +man/man1/avr-addr2line.1 +man/man1/avr-ar.1 +man/man1/avr-dlltool.1 +man/man1/avr-nlmconv.1 +man/man1/avr-nm.1 +man/man1/avr-objcopy.1 +man/man1/avr-objdump.1 +man/man1/avr-ranlib.1 +man/man1/avr-readelf.1 +man/man1/avr-size.1 +man/man1/avr-strings.1 +man/man1/avr-strip.1 +man/man1/avr-windres.1 +man/man1/avr-c++filt.1 +man/man1/avr-as.1 +man/man1/avr-ld.1 +@unexec install-info --delete %D/info/as.info %D/info/dir +@unexec install-info --delete %D/info/binutils.info %D/info/dir +@unexec install-info --delete %D/info/ld.info %D/info/dir +info/as.info +info/as.info-1 +info/as.info-10 +info/as.info-11 +info/as.info-2 +info/as.info-3 +info/as.info-4 +info/as.info-5 +info/as.info-6 +info/as.info-7 +info/as.info-8 +info/as.info-9 +info/binutils.info +info/binutils.info-1 +info/binutils.info-2 +info/binutils.info-3 +info/ld.info +info/ld.info-1 +info/ld.info-2 +info/ld.info-3 +info/ld.info-4 +info/ld.info-5 +info/ld.info-6 +@exec install-info %D/info/as.info %D/info/dir +@exec install-info %D/info/binutils.info %D/info/dir +@exec install-info %D/info/ld.info %D/info/dir +${PKGLOCALEDIR}/locale/da/LC_MESSAGES/binutils.mo +${PKGLOCALEDIR}/locale/es/LC_MESSAGES/binutils.mo +${PKGLOCALEDIR}/locale/es/LC_MESSAGES/gas.mo +${PKGLOCALEDIR}/locale/es/LC_MESSAGES/ld.mo +${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/binutils.mo +${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/gas.mo +${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/ld.mo +${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/binutils.mo +${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/binutils.mo +${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/ld.mo +${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/binutils.mo +${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/gas.mo +${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/ld.mo +@dirrm avr/lib/ldscripts +@dirrm avr/lib +@dirrm avr/bin +@dirrm avr diff --git a/cross/avr-binutils/distinfo b/cross/avr-binutils/distinfo new file mode 100644 index 00000000000..7b48061ce5a --- /dev/null +++ b/cross/avr-binutils/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/07/15 21:46:26 wennmach Exp $ + +SHA1 (binutils-2.13.2.1.tar.gz) = d13624807c6b47fec870096a65d47cce4cf82370 +Size (binutils-2.13.2.1.tar.gz) = 12980018 bytes +SHA1 (patch-aa) = 1e5af4a428314b46fa9c5b5c00e63406d692a0e2 +SHA1 (patch-ab) = abc8b9f823b27d756e1588af45af266efa038d03 +SHA1 (patch-ac) = 9261e61c68d50ba771ff74d3dba0670796a256af +SHA1 (patch-ad) = 306fa82019efec11ae8ed18bf6853934a0f6c16f diff --git a/cross/avr-binutils/patches/patch-aa b/cross/avr-binutils/patches/patch-aa new file mode 100644 index 00000000000..afbb3be1515 --- /dev/null +++ b/cross/avr-binutils/patches/patch-aa @@ -0,0 +1,18 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/07/15 21:46:26 wennmach Exp $ + +--- libiberty/Makefile.in.orig 2003-06-27 00:49:43.000000000 +0200 ++++ libiberty/Makefile.in 2003-06-27 00:50:19.000000000 +0200 +@@ -254,11 +254,12 @@ + @MAINT@stamp-functions : $(CFILES) $(TEXIFILES) $(srcdir)/gather-docs Makefile + @MAINT@@HAVE_PERL@ $(PERL) $(srcdir)/gather-docs $(srcdir) $(srcdir)/functions.texi $(CFILES) $(TEXIFILES) + @MAINT@ echo stamp > stamp-functions + + INSTALL_DEST = @INSTALL_DEST@ +-install: install_to_$(INSTALL_DEST) install-subdir ++#install: install_to_$(INSTALL_DEST) install-subdir ++install: + + install_to_libdir: all + $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n + ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n ) + mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB) diff --git a/cross/avr-binutils/patches/patch-ab b/cross/avr-binutils/patches/patch-ab new file mode 100644 index 00000000000..cbbf2f6161b --- /dev/null +++ b/cross/avr-binutils/patches/patch-ab @@ -0,0 +1,14 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/07/15 21:46:26 wennmach Exp $ + +--- bfd/Makefile.in.orig Fri May 31 04:59:46 2002 ++++ bfd/Makefile.in Tue Jun 4 15:58:06 2002 +@@ -1047,7 +1047,8 @@ + + install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +-install: install-recursive ++#install: install-recursive ++install: + uninstall-am: uninstall-bfdlibLTLIBRARIES + uninstall: uninstall-recursive + all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) config.h diff --git a/cross/avr-binutils/patches/patch-ac b/cross/avr-binutils/patches/patch-ac new file mode 100644 index 00000000000..7d61be39856 --- /dev/null +++ b/cross/avr-binutils/patches/patch-ac @@ -0,0 +1,14 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/07/15 21:46:26 wennmach Exp $ + +--- opcodes/Makefile.in.orig Tue Jun 4 15:59:05 2002 ++++ opcodes/Makefile.in Tue Jun 4 15:58:47 2002 +@@ -702,7 +702,8 @@ + + install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +-install: install-recursive ++#install: install-recursive ++install: + uninstall-am: uninstall-bfdlibLTLIBRARIES + uninstall: uninstall-recursive + all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) config.h diff --git a/cross/avr-binutils/patches/patch-ad b/cross/avr-binutils/patches/patch-ad new file mode 100644 index 00000000000..bb92bf9a169 --- /dev/null +++ b/cross/avr-binutils/patches/patch-ad @@ -0,0 +1,14 @@ +$NetBSD: patch-ad,v 1.1.1.1 2003/07/15 21:46:26 wennmach Exp $ + +--- etc/Makefile.in.orig Sat Jan 26 22:35:45 2002 ++++ etc/Makefile.in Tue Jun 4 16:50:05 2002 +@@ -52,7 +52,8 @@ + all: + + # We want install to imply install-info as per GNU standards. +-install: install-info ++#install: install-info ++install: + + uninstall: + -- cgit v1.2.3