Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479916 - sys-devel/{binutils,gcc}-avr32 sys-libs/newlib-avr32 - create separate packages?
Summary: sys-devel/{binutils,gcc}-avr32 sys-libs/newlib-avr32 - create separate packages?
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: Other Other
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 10:05 UTC by Luke-Jr
Modified: 2019-10-23 07:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2013-08-06 10:05:27 UTC
For some reason, Atmel seems reluctant to submit avr32 support mainline. Since these patches are generally fairly version-specific, it seems logical to have separate packages for them entirely.
Patches: http://distribute.atmel.no/tools/opensource/avr32-gcc/

Note that avr32 and avr are entirely different targets!

I have successfully built and run a firmware built with this, but it crashes when it tries to write to USB too fast. I have not yet determined the fault for this.

== binutils ==

Merely adding patches to /etc/portage/patches/cross-avr32/binutils/ is not sufficient, as autotools needs to regenerate stuff, plus some 'make headers' step for bfd.
Additionally, a symlink to ldscripts is expected in the avr32 root (/usr/avr32), which interferes with multislot.
I have this working in my overlay (layman -a luke-jr), except multislot.

== gcc ==
Throwing the patches in /etc/portage/patches/cross-avr32/gcc/ gets it building with the normal ebuild.

== atmel-headers ==
These are available as a ZIP containing both avr and avr32 headers.
My overlay has an ebuild that installs only the appropriate ones based on the category.

== newlib ==

Additionally, newlib requires patching (and autoreconf), and does not support the /etc/portage/patches structure at all.
I have 1.20 building from my overlay.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-10-23 07:30:13 UTC
(In reply to Luke-Jr from comment #0)
> For some reason, Atmel seems reluctant to submit avr32 support mainline.
> Since these patches are generally fairly version-specific, it seems logical
> to have separate packages for them entirely.
> Patches: http://distribute.atmel.no/tools/opensource/avr32-gcc/

Seems to be unavailable.

> == binutils ==
> Additionally, a symlink to ldscripts is expected in the avr32 root
> (/usr/avr32), which interferes with multislot.

bug #147155