aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2007-06-24 05:30:40 +0800
committerjoerg <joerg@FreeBSD.org>2007-06-24 05:30:40 +0800
commit1c077bef762c23b3c0a1a07a50574a2613b7dafe (patch)
tree6dae8a20a9dc05b07718485e9b2aa06551d3d1e5 /devel
parent650ff993f8ce6d345fb77b8019421e4d5dcc3110 (diff)
downloadfreebsd-ports-graphics-1c077bef762c23b3c0a1a07a50574a2613b7dafe.tar.gz
freebsd-ports-graphics-1c077bef762c23b3c0a1a07a50574a2613b7dafe.tar.zst
freebsd-ports-graphics-1c077bef762c23b3c0a1a07a50574a2613b7dafe.zip
Add device support for ATmega8HVA/ATmega16HVA.
Change AT90USB82 from avr5 to avr5.
Diffstat (limited to 'devel')
-rw-r--r--devel/avr-binutils/Makefile2
-rw-r--r--devel/avr-binutils/files/patch-newdevices13
-rw-r--r--devel/avr-binutils/pkg-descr1
-rw-r--r--devel/avr-gcc/Makefile2
-rw-r--r--devel/avr-gcc/files/patch-newdevices28
-rw-r--r--devel/avr-gcc/files/patch-zz-atmega256x4
-rw-r--r--devel/avr-gcc/pkg-descr2
7 files changed, 33 insertions, 19 deletions
diff --git a/devel/avr-binutils/Makefile b/devel/avr-binutils/Makefile
index f6f1ef7ec75..f29efd5a949 100644
--- a/devel/avr-binutils/Makefile
+++ b/devel/avr-binutils/Makefile
@@ -7,7 +7,7 @@
PORTNAME= binutils
PORTVERSION= 2.17
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEWARE}
MASTER_SITE_SUBDIR= binutils/releases
diff --git a/devel/avr-binutils/files/patch-newdevices b/devel/avr-binutils/files/patch-newdevices
index d45bd91e42a..a4daa6dc6de 100644
--- a/devel/avr-binutils/files/patch-newdevices
+++ b/devel/avr-binutils/files/patch-newdevices
@@ -1,13 +1,13 @@
---- gas/config/tc-avr.c.orig Fri Apr 6 23:27:21 2007
-+++ gas/config/tc-avr.c Fri Apr 6 23:31:21 2007
+--- gas/config/tc-avr.c.orig Mon May 14 00:03:05 2007
++++ gas/config/tc-avr.c Mon May 14 00:04:56 2007
@@ -111,27 +111,36 @@
{"atmega88", AVR_ISA_PWMx, bfd_mach_avr4},
{"atmega8515", AVR_ISA_M8, bfd_mach_avr4},
{"atmega8535", AVR_ISA_M8, bfd_mach_avr4},
++ {"atmega8hva", AVR_ISA_PWMx, bfd_mach_avr4},
+ {"at90pwm1", AVR_ISA_PWMx, bfd_mach_avr4},
{"at90pwm2", AVR_ISA_PWMx, bfd_mach_avr4},
{"at90pwm3", AVR_ISA_PWMx, bfd_mach_avr4},
-+ {"at90usb82", AVR_ISA_PWMx, bfd_mach_avr4},
{"atmega16", AVR_ISA_M323, bfd_mach_avr5},
{"atmega161", AVR_ISA_M161, bfd_mach_avr5},
{"atmega162", AVR_ISA_M323, bfd_mach_avr5},
@@ -39,10 +39,15 @@
{"atmega128", AVR_ISA_M128, bfd_mach_avr5},
{"atmega1280", AVR_ISA_M128, bfd_mach_avr5},
{"atmega1281", AVR_ISA_M128, bfd_mach_avr5},
-@@ -142,6 +151,7 @@
+@@ -139,9 +148,12 @@
+ {"atmega649", AVR_ISA_M323, bfd_mach_avr5},
+ {"atmega6450", AVR_ISA_M323, bfd_mach_avr5},
+ {"atmega6490", AVR_ISA_M323, bfd_mach_avr5},
++ {"atmega16hva",AVR_ISA_M323, bfd_mach_avr5},
{"at90can32" , AVR_ISA_M323, bfd_mach_avr5},
{"at90can64" , AVR_ISA_M323, bfd_mach_avr5},
{"at90can128", AVR_ISA_M128, bfd_mach_avr5},
++ {"at90usb82", AVR_ISA_M323, bfd_mach_avr5},
+ {"at90usb162", AVR_ISA_M323, bfd_mach_avr5},
{"at90usb646", AVR_ISA_M323, bfd_mach_avr5},
{"at90usb647", AVR_ISA_M323, bfd_mach_avr5},
diff --git a/devel/avr-binutils/pkg-descr b/devel/avr-binutils/pkg-descr
index baa39044d57..f28d07b077f 100644
--- a/devel/avr-binutils/pkg-descr
+++ b/devel/avr-binutils/pkg-descr
@@ -16,3 +16,4 @@ following AVR devices has been added by a private patch:
ATmega165P/169P
ATmega325P/3250P/329P/3290P
ATmega2560/2561
+ ATmega8HVA/16HVA
diff --git a/devel/avr-gcc/Makefile b/devel/avr-gcc/Makefile
index 9eede0b1995..ac030e25d66 100644
--- a/devel/avr-gcc/Makefile
+++ b/devel/avr-gcc/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gcc
PORTVERSION= 4.1.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GCC}
MASTER_SITES+= http://people.freebsd.org/~joerg/:local
diff --git a/devel/avr-gcc/files/patch-newdevices b/devel/avr-gcc/files/patch-newdevices
index e6db84f603a..32a3f677317 100644
--- a/devel/avr-gcc/files/patch-newdevices
+++ b/devel/avr-gcc/files/patch-newdevices
@@ -1,5 +1,5 @@
--- gcc/config/avr/avr.c.orig Thu Jul 28 00:29:46 2005
-+++ gcc/config/avr/avr.c Sat Apr 7 00:34:02 2007
++++ gcc/config/avr/avr.c Mon May 14 07:18:20 2007
@@ -169,10 +169,19 @@
{ "at90s8515", 2, "__AVR_AT90S8515__" },
{ "at90c8534", 2, "__AVR_AT90C8534__" },
@@ -21,14 +21,14 @@
/* Classic, > 8K. */
{ "avr3", 3, NULL },
{ "atmega103", 3, "__AVR_ATmega103__" },
-@@ -187,24 +196,53 @@
+@@ -187,24 +196,55 @@
{ "atmega88", 4, "__AVR_ATmega88__" },
{ "atmega8515", 4, "__AVR_ATmega8515__" },
{ "atmega8535", 4, "__AVR_ATmega8535__" },
++ { "atmega8hva", 4, "__AVR_ATmega8HVA__" },
+ { "at90pwm1", 4, "__AVR_AT90PWM1__" },
+ { "at90pwm2", 4, "__AVR_AT90PWM2__" },
+ { "at90pwm3", 4, "__AVR_AT90PWM3__" },
-+ { "at90usb82", 4, "__AVR_AT90USB82__" },
/* Enhanced, > 8K. */
{ "avr5", 5, NULL },
{ "atmega16", 5, "__AVR_ATmega16__" },
@@ -64,8 +64,10 @@
{ "atmega128", 5, "__AVR_ATmega128__" },
+ { "atmega1280",5, "__AVR_ATmega1280__" },
+ { "atmega1281",5, "__AVR_ATmega1281__" },
++ { "atmega16hva",5, "__AVR_ATmega16HVA__" },
+ { "at90can32", 5, "__AVR_AT90CAN32__" },
+ { "at90can64", 5, "__AVR_AT90CAN64__" },
++ { "at90usb82", 5, "__AVR_AT90USB82__" },
{ "at90can128", 5, "__AVR_AT90CAN128__" },
+ { "at90usb162", 5, "__AVR_AT90USB162__" },
+ { "at90usb646", 5, "__AVR_AT90USB646__" },
@@ -76,8 +78,8 @@
/* Assembler only. */
{ "avr1", 1, NULL },
--- gcc/config/avr/t-avr.orig Wed Apr 6 07:34:30 2005
-+++ gcc/config/avr/t-avr Sat Apr 7 00:37:08 2007
-@@ -42,21 +42,62 @@
++++ gcc/config/avr/t-avr Mon May 14 07:16:32 2007
+@@ -42,21 +42,64 @@
# The many avr2 matches are not listed here - this is the default.
MULTILIB_MATCHES = \
@@ -98,6 +100,7 @@
- mmcu?avr5=mmcu?atmega161 mmcu?avr5=mmcu?atmega162 \
- mmcu?avr5=mmcu?atmega163 mmcu?avr5=mmcu?atmega169 \
- mmcu?avr5=mmcu?atmega16 mmcu?avr5=mmcu?atmega168 \
++ mmcu?avr4=mmcu?atmega8hva \
+ mmcu?avr4=mmcu?at90pwm1 \
+ mmcu?avr4=mmcu?at90pwm2 \
+ mmcu?avr4=mmcu?at90pwm3 \
@@ -140,6 +143,7 @@
+ mmcu?avr5=mmcu?atmega128 \
+ mmcu?avr5=mmcu?atmega1280 \
+ mmcu?avr5=mmcu?atmega1281 \
++ mmcu?avr5=mmcu?atmega16hva \
+ mmcu?avr5=mmcu?at90can32 \
+ mmcu?avr5=mmcu?at90can64 \
+ mmcu?avr5=mmcu?at90can128 \
@@ -152,9 +156,9 @@
MULTILIB_EXCEPTIONS =
---- gcc/config/avr/avr.h.orig Wed Apr 11 17:36:15 2007
-+++ gcc/config/avr/avr.h Wed Apr 11 17:41:25 2007
-@@ -763,12 +763,67 @@
+--- gcc/config/avr/avr.h.orig Mon May 14 07:12:25 2007
++++ gcc/config/avr/avr.h Mon May 14 07:15:46 2007
+@@ -763,12 +763,69 @@
#define ASM_SPEC "%{mmcu=*:-mmcu=%*}"
#define LINK_SPEC " %{!mmcu*:-m avr2}\
@@ -219,6 +223,8 @@
+ mmcu=atmega165*|\
+ mmcu=atmega168|\
+ mmcu=atmega169*|\
++ mmcu=atmega8hva|\
++ mmcu=atmega16hva|\
+ mmcu=at90can*|\
+ mmcu=at90pwm*|\
+ mmcu=at90usb*: -Tdata 0x800100}\
@@ -228,7 +234,7 @@
#define LIB_SPEC \
"%{!mmcu=at90s1*:%{!mmcu=attiny11:%{!mmcu=attiny12:%{!mmcu=attiny15:%{!mmcu=attiny28: -lc }}}}}"
-@@ -804,6 +859,15 @@
+@@ -804,6 +861,15 @@
%{mmcu=at86rf401:crt86401.o%s} \
%{mmcu=attiny13:crttn13.o%s} \
%{mmcu=attiny2313:crttn2313.o%s} \
@@ -244,7 +250,7 @@
%{mmcu=atmega103|mmcu=avr3:crtm103.o%s} \
%{mmcu=atmega603:crtm603.o%s} \
%{mmcu=at43usb320:crt43320.o%s} \
-@@ -814,22 +878,51 @@
+@@ -814,22 +880,53 @@
%{mmcu=atmega88:crtm88.o%s} \
%{mmcu=atmega8515:crtm8515.o%s} \
%{mmcu=atmega8535:crtm8535.o%s} \
@@ -285,6 +291,8 @@
%{mmcu=atmega128:crtm128.o%s} \
+%{mmcu=atmega1280:crtm1280.o%s} \
+%{mmcu=atmega1281:crtm1281.o%s} \
++%{mmcu=atmega8hva:crtm8hva.o%s} \
++%{mmcu=atmega16hva:crtm16hva.o%s} \
+%{mmcu=at90can32:crtcan32.o%s} \
+%{mmcu=at90can64:crtcan64.o%s} \
%{mmcu=at90can128:crtcan128.o%s} \
diff --git a/devel/avr-gcc/files/patch-zz-atmega256x b/devel/avr-gcc/files/patch-zz-atmega256x
index b096badd2a5..f4af252afa3 100644
--- a/devel/avr-gcc/files/patch-zz-atmega256x
+++ b/devel/avr-gcc/files/patch-zz-atmega256x
@@ -241,9 +241,9 @@ diff -ur gcc/config/avr/avr.h gcc-4.1.1-new-devices-m256/gcc/config/avr/avr.h
#define LIB_SPEC \
"%{!mmcu=at90s1*:%{!mmcu=attiny11:%{!mmcu=attiny12:%{!mmcu=attiny15:%{!mmcu=attiny28: -lc }}}}}"
@@ -904,6 +915,8 @@
- %{mmcu=atmega128:crtm128.o%s} \
- %{mmcu=atmega1280:crtm1280.o%s} \
%{mmcu=atmega1281:crtm1281.o%s} \
+ %{mmcu=atmega8hva:crtm8hva.o%s} \
+ %{mmcu=atmega16hva:crtm16hva.o%s} \
+%{mmcu=atmega2560:crtm2560.o%s} \
+%{mmcu=atmega2561:crtm2561.o%s} \
%{mmcu=at90can32:crtcan32.o%s} \
diff --git a/devel/avr-gcc/pkg-descr b/devel/avr-gcc/pkg-descr
index 6fd5b14e940..d2cbc744ba4 100644
--- a/devel/avr-gcc/pkg-descr
+++ b/devel/avr-gcc/pkg-descr
@@ -16,7 +16,7 @@ Locally added support for the following AVR devices:
ATmega329/ATmega3290/ATmega649/ATmega6490, including their "P" variants
ATmega406
ATmega640/ATmega1280/ATmega1281
- AT90PWM1/PWM2/AT90PWM3 AT90CAN32/64
+ AT90PWM1/PWM2/AT90PWM3 AT90CAN32/64 ATmega8HVA/ATmega16HVA
AT90USB82/162/646/647/1286/1287
ATmega2560/ATmega2561 (beta test)