[patch] Add support for avrxmega3.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[patch] Add support for avrxmega3.

Georg-Johann Lay-2
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.

_______________________________________________
AVR-libc-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

alibc-avrxmega3.diff (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [patch] Add support for avrxmega3.

Georg-Johann Lay-2
Georg-Johann Lay schrieb:
> 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

> 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.


_______________________________________________
AVR-libc-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [patch] Add support for avrxmega3.

Georg-Johann Lay-2
In reply to this post by Georg-Johann Lay-2
On 08.06.2017 12:44, Georg-Johann Lay wrote:
> 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

>      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.

_______________________________________________
AVR-libc-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev
Loading...