Reorganize the avr-binutils port to use the central binutils one
(as the various arm*binutils ports are doing, too). Add a patch to recognize the "avrtiny" architecture MCUs (ATtiny10 et al.), extracted from the Atmel AVR Toolchain 3.4.5 (they still didn't push it upstream, alas).
This commit is contained in:
parent
9d78f7cbe9
commit
050b43f85a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373781
3 changed files with 1779 additions and 28 deletions
|
@ -1,33 +1,12 @@
|
|||
# Created by: Joerg Wunsch <joerg@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= binutils
|
||||
PORTVERSION= 2.24
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
|
||||
MASTER_SITE_SUBDIR= binutils/releases
|
||||
PORTREVISION= 1
|
||||
COMMENT= GNU binutils for AVR cross-development
|
||||
PKGNAMEPREFIX= avr-
|
||||
BUTARGET= avr
|
||||
PLIST= ${.CURDIR}/pkg-plist
|
||||
|
||||
MAINTAINER= joerg@FreeBSD.org
|
||||
COMMENT= GNU binutils for Atmel AVR 8-bit RISC cross-development
|
||||
MASTERDIR= ${.CURDIR}/../binutils
|
||||
PATCHDIR= ${.CURDIR}/files
|
||||
|
||||
WRKSRC= ${WRKDIR}/binutils-${PORTVERSION}
|
||||
|
||||
USES= gmake tar:bzip2
|
||||
CONFIGURE_ARGS= --target=avr --disable-werror --disable-nls
|
||||
GNU_CONFIGURE= yes
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
.if (${MACHINE_ARCH} == "amd64")
|
||||
MACHINE_ARCH= x86_64
|
||||
.endif
|
||||
|
||||
INFO= as binutils gprof ld bfd standards configure
|
||||
INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info
|
||||
|
||||
add-plist-post:
|
||||
@${ECHO_CMD} "@unexec rm %D/${INFO_PATH}/dir 2> /dev/null || true" >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@unexec rmdir %D/${INFO_PATH} 2> /dev/null || true" >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@unexec rmdir %D/${PKGNAMEPREFIX:S/-$//} 2> /dev/null || true" >> ${TMPPLIST}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
1767
devel/avr-binutils/files/patch-avrtiny
Normal file
1767
devel/avr-binutils/files/patch-avrtiny
Normal file
File diff suppressed because it is too large
Load diff
|
@ -57,6 +57,11 @@ avr/lib/ldscripts/avr6.xbn
|
|||
avr/lib/ldscripts/avr6.xn
|
||||
avr/lib/ldscripts/avr6.xr
|
||||
avr/lib/ldscripts/avr6.xu
|
||||
avr/lib/ldscripts/avrtiny.x
|
||||
avr/lib/ldscripts/avrtiny.xbn
|
||||
avr/lib/ldscripts/avrtiny.xn
|
||||
avr/lib/ldscripts/avrtiny.xr
|
||||
avr/lib/ldscripts/avrtiny.xu
|
||||
avr/lib/ldscripts/avrxmega1.x
|
||||
avr/lib/ldscripts/avrxmega1.xbn
|
||||
avr/lib/ldscripts/avrxmega1.xn
|
||||
|
|
Loading…
Reference in a new issue