From ea804023efae2944e3dd60e7da3c7ab42c389d5d Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Sun, 28 Jul 2013 14:14:04 +0200 Subject: [PATCH 1/3] Updated ARM gcc to 4.7.4. Added native 64 bit version for linux (no more ia32-libs needed). Fixes #1474 --- build/build.xml | 77 +++++++++---------- ...e-eabi-4.4.1-2010q1-188-linux32.tar.gz.sha | 1 - ...-none-eabi-4.7.4-2013q2-linux32.tar.gz.sha | 1 + ...-none-eabi-4.7.4-2013q2-linux64.tar.gz.sha | 1 + build/shared/revisions.txt | 2 + hardware/arduino/sam/platform.txt | 2 +- 6 files changed, 41 insertions(+), 43 deletions(-) delete mode 100644 build/linux/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-linux32.tar.gz.sha create mode 100644 build/linux/dist/gcc-arm-none-eabi-4.7.4-2013q2-linux32.tar.gz.sha create mode 100644 build/linux/dist/gcc-arm-none-eabi-4.7.4-2013q2-linux64.tar.gz.sha diff --git a/build/build.xml b/build/build.xml index 35e6fcc7a..0bebb4376 100644 --- a/build/build.xml +++ b/build/build.xml @@ -11,14 +11,10 @@ - - - - + + + + @@ -440,7 +436,7 @@ - + @@ -475,11 +471,16 @@ - - + + + + + + + @@ -493,6 +494,13 @@ + + + + + + + @@ -500,60 +508,47 @@ - + - + - - - - - - - - - + + - + + - - + + + + + + Checksum failed. - File gcc-arm-none-eabi-4.4.1-2010q1-188-linux32.tar.gz failed checksum. - Please remove "linux/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-linux32.tar.gz" to download it again. + File ${dist_file} failed checksum. + Please remove "linux/dist/${dist_file}" to download it again. - + - - - - - - - - diff --git a/build/linux/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-linux32.tar.gz.sha b/build/linux/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-linux32.tar.gz.sha deleted file mode 100644 index 29a002ad1..000000000 --- a/build/linux/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-linux32.tar.gz.sha +++ /dev/null @@ -1 +0,0 @@ -46a93ceec28772ac19c76ffc9b285a1eac4288a3 diff --git a/build/linux/dist/gcc-arm-none-eabi-4.7.4-2013q2-linux32.tar.gz.sha b/build/linux/dist/gcc-arm-none-eabi-4.7.4-2013q2-linux32.tar.gz.sha new file mode 100644 index 000000000..0d4dce966 --- /dev/null +++ b/build/linux/dist/gcc-arm-none-eabi-4.7.4-2013q2-linux32.tar.gz.sha @@ -0,0 +1 @@ +b35a6b9b1066977509ad5dcf51936b7a6bb18c18 diff --git a/build/linux/dist/gcc-arm-none-eabi-4.7.4-2013q2-linux64.tar.gz.sha b/build/linux/dist/gcc-arm-none-eabi-4.7.4-2013q2-linux64.tar.gz.sha new file mode 100644 index 000000000..d88a6ac83 --- /dev/null +++ b/build/linux/dist/gcc-arm-none-eabi-4.7.4-2013q2-linux64.tar.gz.sha @@ -0,0 +1 @@ +14afebbb1a26b799237080ec32b300a409ff99cb diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index bad682ea5..71ecfc842 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -7,6 +7,8 @@ ARDUINO 1.5.3 BETA * Added support for new 1.5 Library format (https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification) * Pass board type from boards.txt (https://github.com/arduino/Arduino/issues/308) * Display estimated RAM usage after compile (Loren M. Lang) +* Updated arm gcc to 4.7.4 for linux +* ARM gcc doesn't require ia32-libs anymore on 64 bits linux systems [arduino core] * sam: Fixed delayMicrosecond() when interrupts are disabled diff --git a/hardware/arduino/sam/platform.txt b/hardware/arduino/sam/platform.txt index 7f0adce20..eb2433642 100644 --- a/hardware/arduino/sam/platform.txt +++ b/hardware/arduino/sam/platform.txt @@ -10,7 +10,7 @@ version=1.5.3 # SAM3 compile variables # ---------------------- -compiler.path={runtime.ide.path}/hardware/tools/g++_arm_none_eabi/bin/ +compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.7.4-2013q2/bin/ compiler.c.cmd=arm-none-eabi-gcc compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf compiler.c.elf.cmd=arm-none-eabi-g++ From 960c517b51c9e62bcf10bcabe5d0c2cf9e5424fd Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Sat, 3 Aug 2013 02:10:59 +0200 Subject: [PATCH 2/3] Updated ARM gcc for win32 and macos to version 4.7.4 --- build/build.xml | 123 +++++------------- ...one-eabi-4.4.1-2010q1-188-macos.tar.gz.sha | 1 - ...-arm-none-eabi-4.7.4-2013q2-mac.tar.gz.sha | 1 + ...one-eabi-4.4.1-2010q1-188-win32.tar.gz.sha | 1 - ...-none-eabi-4.7.4-2013q2-windows.tar.gz.sha | 1 + 5 files changed, 37 insertions(+), 90 deletions(-) delete mode 100644 build/macosx/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-macos.tar.gz.sha create mode 100644 build/macosx/dist/gcc-arm-none-eabi-4.7.4-2013q2-mac.tar.gz.sha delete mode 100644 build/windows/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-win32.tar.gz.sha create mode 100644 build/windows/dist/gcc-arm-none-eabi-4.7.4-2013q2-windows.tar.gz.sha diff --git a/build/build.xml b/build/build.xml index 0bebb4376..9f93f9ff1 100644 --- a/build/build.xml +++ b/build/build.xml @@ -16,6 +16,16 @@ + + + + + + + + + + @@ -174,7 +184,7 @@ - + @@ -223,7 +233,11 @@ - + + + + + @@ -241,42 +255,6 @@ - - - - - - - - - - - - - - - - - - - Checksum failed. - - File gcc-arm-none-eabi-4.4.1-2010q1-188-macos.tar.gz failed checksum. - Please remove "macosx/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-macos.tar.gz" to download it again. - - - - - - - - - - @@ -475,7 +453,7 @@ - + @@ -495,7 +473,7 @@ - + @@ -516,21 +494,21 @@ - + - - - + + + - - + + - - @@ -538,14 +516,14 @@ Checksum failed. File ${dist_file} failed checksum. - Please remove "linux/dist/${dist_file}" to download it again. + Please remove "${staging_folder}/dist/${dist_file}" to download it again. - - + + @@ -690,7 +668,12 @@ - + + + + + + @@ -703,42 +686,6 @@ dir="windows/work" spawn="true"/> - - - - - - - - - - - - - - - - - - - Checksum failed. - - File gcc-arm-none-eabi-4.4.1-2010q1-188-win32.tar.gz failed checksum. - Please remove "windows/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-win32.tar.gz" to download it again. - - - - - - - - - - diff --git a/build/macosx/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-macos.tar.gz.sha b/build/macosx/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-macos.tar.gz.sha deleted file mode 100644 index 3b951bb7f..000000000 --- a/build/macosx/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-macos.tar.gz.sha +++ /dev/null @@ -1 +0,0 @@ -14c554bb9aa9f0d0262a593e7452d33f4babc60d diff --git a/build/macosx/dist/gcc-arm-none-eabi-4.7.4-2013q2-mac.tar.gz.sha b/build/macosx/dist/gcc-arm-none-eabi-4.7.4-2013q2-mac.tar.gz.sha new file mode 100644 index 000000000..a265218f9 --- /dev/null +++ b/build/macosx/dist/gcc-arm-none-eabi-4.7.4-2013q2-mac.tar.gz.sha @@ -0,0 +1 @@ +a1326c6258f91d9b318570bc619ca8a3b799d8bc diff --git a/build/windows/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-win32.tar.gz.sha b/build/windows/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-win32.tar.gz.sha deleted file mode 100644 index 068b717e3..000000000 --- a/build/windows/dist/gcc-arm-none-eabi-4.4.1-2010q1-188-win32.tar.gz.sha +++ /dev/null @@ -1 +0,0 @@ -f288affa058bfdd44f8b93800fc4cb01b2ebf1e5 diff --git a/build/windows/dist/gcc-arm-none-eabi-4.7.4-2013q2-windows.tar.gz.sha b/build/windows/dist/gcc-arm-none-eabi-4.7.4-2013q2-windows.tar.gz.sha new file mode 100644 index 000000000..0c66d28a8 --- /dev/null +++ b/build/windows/dist/gcc-arm-none-eabi-4.7.4-2013q2-windows.tar.gz.sha @@ -0,0 +1 @@ +c41fa509205b9ced43fc221b6a0cae4223a0842d From b5bea8f5084cd57c63a513c92acd579a2cb612f7 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 8 Aug 2013 14:52:49 +0200 Subject: [PATCH 3/3] build.xml some properties are now deduced from 'platform' property --- build/build.xml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/build/build.xml b/build/build.xml index 9f93f9ff1..30a2472c2 100644 --- a/build/build.xml +++ b/build/build.xml @@ -5,26 +5,27 @@ - - - - - - - - - - + + + + + + - - - - + + + + + + + + +