mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-10 15:38:12 +00:00
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:
parent
199d2cf851
commit
be06e74d94
@ -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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user