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.
This commit is contained in:
Arne Schwabe 2016-10-31 19:04:47 +01:00 committed by GitHub
parent 199d2cf851
commit be06e74d94

View File

@ -39,6 +39,7 @@ multi.bootloader.lock_bits=0x0F
multi.build.board=AVR_PRO multi.build.board=AVR_PRO
multi.build.core=arduino multi.build.core=arduino
multi.build.variant=eightanaloginputs multi.build.variant=eightanaloginputs
multi.build.extra_flags=-Wl,--relax
multi.menu.cpu.16MHzatmega328=ATmega328 (3.3V, 16 MHz) 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.mcu=atmega328p
multi.menu.cpu.16MHzatmega328.build.f_cpu=16000000L 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. Close and reopen the Arduino IDE and load the Multiprotocol project.