From be06e74d94b3a476a419b1c5d61ea7613c383095 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 31 Oct 2016 19:04:47 +0100 Subject: [PATCH 1/2] Move multi specific compiler flags to multi board definition This has the advantage not modifying the other boards and the user needs to only edit one file instead of two. --- docs/Compiling.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/Compiling.md b/docs/Compiling.md index 90667e0..e3ba3c8 100644 --- a/docs/Compiling.md +++ b/docs/Compiling.md @@ -39,6 +39,7 @@ multi.bootloader.lock_bits=0x0F multi.build.board=AVR_PRO multi.build.core=arduino multi.build.variant=eightanaloginputs +multi.build.extra_flags=-Wl,--relax multi.menu.cpu.16MHzatmega328=ATmega328 (3.3V, 16 MHz) @@ -53,16 +54,6 @@ multi.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0xFD multi.menu.cpu.16MHzatmega328.build.mcu=atmega328p multi.menu.cpu.16MHzatmega328.build.f_cpu=16000000L ############################################################## -``` -1. Open the file *platform.txt* in the same folder and change the line that reads - -```compiler.c.elf.extra_flags= ``` - -to - -```compiler.c.elf.extra_flags=-Wl,--relax ``` - -paste the following text into the end of the file and save it. Close and reopen the Arduino IDE and load the Multiprotocol project. From 010502ed9d54ff668a0409501aaa95f676a7aa16 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 31 Oct 2016 19:06:49 +0100 Subject: [PATCH 2/2] Also update Windows section --- docs/Compiling.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/docs/Compiling.md b/docs/Compiling.md index e3ba3c8..1e33926 100644 --- a/docs/Compiling.md +++ b/docs/Compiling.md @@ -66,14 +66,6 @@ Open ```boards.txt``` in your favourite text editor (Notepad) Copy and paste the "Multi 4-in-1" text listed above into the end of the file and save it. -Open the file *platform.txt* in the same folder and change the line that reads - -```compiler.c.elf.extra_flags= ``` - -to - -```compiler.c.elf.extra_flags=-Wl,--relax ``` - Close and reopen the Arduino IDE and load the Multiprotocol project. ## Common process for OSX and Windows