Skip to content

Update toolchain to Atmel 3.5.2 #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jul 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
.DS_Store
*.bz2
*.tar.*
*.zip
objdir*
objdir
toolsdir
*-build
autoconf-2.64.tar.bz2
autoconf-2.64/
automake-1.11.1.tar.bz2
automake-1.11.1/
avr-libc-1.8.0/
avr8-headers-6.2.0.334/
binutils-2.24
gcc-4.8.1
avrdude-5.11.1
avrdude-6.0.1
libusb-1.0.18
libusb-compat-0.1.5
gdb-7.8
avr-binutils.tar.bz2
binutils
avr-gcc.tar.bz2
gcc
avr-gdb.tar.bz2
gdb
avr-libc.tar.bz2
avr-libc/
avr8-headers.zip
avr8-headers/
gmp-5.0.2.tar.bz2
mpc-0.9.tar.gz
mpfr-3.0.0.tar.bz2
avr
tmp
15 changes: 6 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@ This is the AVR Toolchain used in the [Arduino IDE](http://arduino.cc/).
As soon as Atmel [ships a newer toolchain](http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/), we pull the source code, **patch it** with some user contributed patches and deliver it with the [Arduino IDE](http://arduino.cc/).
Therefore, the resulting binaries may differ significantly from Atmel's. And you should start blaming us if things are not working as expected :)

Latest toolchain available is based on Atmel 3.4.5 version. It contains:
- binutils-2.24
- gcc-4.8.1
- avr-libc-1.8.0
- libusb-win32-bin-1.2.6.0 (Windows only)
- libusb-1.0.18 and libusb-compat-0.1.5 (Linux and Mac OS X)
- avrdude-6.0.1
Latest toolchain available is based on Atmel 3.5.2 version. It contains:
- binutils-2.26
- gcc-4.9.2
- avr-libc-2.0.0
- gdb-7.8

### Building

Setup has been done on partially set up development machines. If, trying to compile on your machine, you find any package missing from the following list, please open an issue at once! We all can't afford wasting time on setup :)

#### Debian requirements

```bash
sudo apt-get install build-essential gperf bison subversion texinfo zip automake flex libusb-dev libusb-1.0-0-dev libtinfo-dev pkg-config
sudo apt-get install build-essential gperf bison subversion texinfo zip automake flex libtinfo-dev pkg-config
```

#### Mac OSX requirements
Expand All @@ -34,7 +32,6 @@ sudo port install wget +universal
sudo port install automake +universal
sudo port install autoconf +universal
sudo port install gpatch +universal
sudo port install libusb +universal
```

#### Windows requirements
Expand Down
25 changes: 0 additions & 25 deletions arch.arm.build.bash

This file was deleted.

25 changes: 0 additions & 25 deletions arch.linux32.build.bash

This file was deleted.

25 changes: 0 additions & 25 deletions arch.linux64.build.bash

This file was deleted.

27 changes: 0 additions & 27 deletions arch.mac32.build.bash

This file was deleted.

26 changes: 0 additions & 26 deletions arch.win32.build.bash

This file was deleted.

11 changes: 11 additions & 0 deletions avr-gcc-patches/0001-gcc-lto-wrapper.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- gcc/lto-wrapper.c.orig 2016-06-14 21:13:06.985134945 +0200
+++ gcc/lto-wrapper.c 2016-06-14 21:15:37.825167119 +0200
@@ -594,7 +594,7 @@
filename[p - argv[i]] = '\0';
file_offset = (off_t) loffset;
}
- fd = open (argv[i], O_RDONLY);
+ fd = open (argv[i], O_RDONLY|O_BINARY);
if (fd == -1)
continue;
sobj = simple_object_start_read (fd, file_offset, "__GNU_LTO",
19 changes: 19 additions & 0 deletions avr-gdb-patches/01-mingw-libtermcap-failing-linking.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff -ru gdb/gdb/windows-termcap.c gdb.new/gdb/windows-termcap.c
--- gdb.orig/gdb/windows-termcap.c 2016-03-10 13:28:43.000000000 +0100
+++ gdb/gdb/windows-termcap.c 2016-06-06 15:09:51.502719528 +0200
@@ -57,6 +57,7 @@
return NULL;
}

+/*
int
tputs (char *string, int nlines, int (*outfun) ())
{
@@ -65,6 +66,7 @@

return 0;
}
+*/

char *
tgoto (const char *cap, int col, int row)
Loading