Just sticking this up here for anyone that might be interested (or comes via Google).
If you happen to be silly enough to run nix or NixOS (like me), the following derivation works for the Atmel provided binaries:
{ stdenv, fetchFromGitHub, unzip }:
stdenv.mkDerivation rec {
name = "av32-toolchain";
src = fetchFromGitHub {
owner = "samdoshi";
repo = "avr32-toolchain-linux";
rev = "ac4fe6f831ffcd026147ce88bf8427df1678737b";
sha256 = "0mj7pp9masp6fycl3g4sp7mji4pdpyksvvcxywp6c0kfrv54d4mb";
};
buildInputs = [ unzip ];
phases = [ "installPhase" ];
installPhase = ''
tar xvfz $src/avr32-gnu-toolchain-3.4.3.820-linux.any.x86_64.tar.gz
mv avr32-gnu-toolchain-linux_x86_64 $out
unzip $src/avr32-headers-6.2.0.742.zip -d $out/avr32/include
'';
}
(If the Atmel binaries stop working I’ll have a think about porting over the DIY compiled version, though I may seriously think about rewriting that Makefile…)