Discussion:
[avr-libc-dev] [patch] Add support for avrxmega3.
Georg-Johann Lay
2017-06-08 10:44:20 UTC
Permalink
Hi,

this patch adds avrxmega3 support and the 2 multilib versions
associated with it.

avr-gcc doesn't yet have respective support, but the Makefiles
scale accordingly. As is is easier to get something into avr-gcc,
and because the libc and gcc must agree on the support, I am
starting with the "hard" part.


Johann


Add multilib support for avrxmega3 + avrxmega3/short-calls.

* configure.ac (CHECK_AVR_DEVICE): Add one for avrxmega3.
(AM_CONDITIONAL): Add one for HAS_avrxmega3.
(AC_CONFIG_FILES): Add avr/lib/avrxmega3/Makefile,
avr/lib/avrxmega3/short-calls/Makefile.

* devtools/gen-avr-lib-tree.sh (CFLAGS_SHORT_CALLS): New.
(AVRXMEGA3_DEV_INFO): New.
(AVRXMEGA3SC_DEV_INFO): New.
(AVR_ARH_INFO): Add entries avrxmega3, avrxmega3/short-calls.

* include/avr/pgmspace.h (__AVR_HAVE_RAMPD__): Fix comment.
Georg-Johann Lay
2017-06-11 20:29:00 UTC
Permalink
Post by Georg-Johann Lay
Hi,
this patch adds avrxmega3 support and the 2 multilib versions
associated with it.
avr-gcc doesn't yet have respective support, but the Makefiles
scale accordingly. As is is easier to get something into avr-gcc,
and because the libc and gcc must agree on the support, I am
starting with the "hard" part.
FYI, according GCC patch is here:

http://gcc.gnu.org/ml/gcc-patches/2017-06/msg00595.html
Post by Georg-Johann Lay
Johann
Add multilib support for avrxmega3 + avrxmega3/short-calls.
* configure.ac (CHECK_AVR_DEVICE): Add one for avrxmega3.
(AM_CONDITIONAL): Add one for HAS_avrxmega3.
(AC_CONFIG_FILES): Add avr/lib/avrxmega3/Makefile,
avr/lib/avrxmega3/short-calls/Makefile.
* devtools/gen-avr-lib-tree.sh (CFLAGS_SHORT_CALLS): New.
(AVRXMEGA3_DEV_INFO): New.
(AVRXMEGA3SC_DEV_INFO): New.
(AVR_ARH_INFO): Add entries avrxmega3, avrxmega3/short-calls.
* include/avr/pgmspace.h (__AVR_HAVE_RAMPD__): Fix comment.
Georg-Johann Lay
2017-06-13 09:42:33 UTC
Permalink
Post by Georg-Johann Lay
Hi,
this patch adds avrxmega3 support and the 2 multilib versions
associated with it.
avr-gcc doesn't yet have respective support, but the Makefiles
scale accordingly. As is is easier to get something into avr-gcc,
and because the libc and gcc must agree on the support, I am
starting with the "hard" part.
FYI, the respective extension has been added to GCC and is
available since

https://gcc.gnu.org/r249124

It

* Adds -mmcu=avrxmega3
* Adds -mshort-calls
* Adds some devices (not yet supported by avr-libc)
* Adds a configure check so it's restrictive in that it
requires https://sourceware.org/PR21472 to build avr-gcc.

Johann
Post by Georg-Johann Lay
Add multilib support for avrxmega3 + avrxmega3/short-calls.
* configure.ac (CHECK_AVR_DEVICE): Add one for avrxmega3.
(AM_CONDITIONAL): Add one for HAS_avrxmega3.
(AC_CONFIG_FILES): Add avr/lib/avrxmega3/Makefile,
avr/lib/avrxmega3/short-calls/Makefile.
* devtools/gen-avr-lib-tree.sh (CFLAGS_SHORT_CALLS): New.
(AVRXMEGA3_DEV_INFO): New.
(AVRXMEGA3SC_DEV_INFO): New.
(AVR_ARH_INFO): Add entries avrxmega3, avrxmega3/short-calls.
* include/avr/pgmspace.h (__AVR_HAVE_RAMPD__): Fix comment.
Loading...