Commit Graph

7 Commits

Author SHA1 Message Date
0313edbfe6 Berserker changes 2022-04-24 16:17:43 +02:00
Yuri D'Elia
1a0a3e00ae Include the required linker script for the language data
Instead of relying on patching the Arduino's avr6.xn linker script
(which is required for the custom language data sections), provide the
linker script and use linker flags in boards.txt to use it.

This *greatly* simplifies the installation and usage of Arduino, and
also ensures the firmware is always built correctly, since a missing
section will result in a non-working firmware which is difficult to
diagnose.
2021-06-21 07:46:09 +02:00
Yuri D'Elia
37f2bee6fd Rework compiler/linker flags
- Remove unnecessary warning flags during linking stage
- Remove -fuse-linker-plugin, implied by -flto at link time
- Remove -fpermissive to avoid future warning creep (depends on https://github.com/prusa3d/Prusa-Firmware/pull/2405)
- Add -fno-rtti for c++ (no savings, just to avoid future usage of rtti)
2021-06-21 07:44:35 +02:00
Voinea Dragos
72082e54fb HAS_SYSTEM_TIMER_0 2021-06-21 07:41:39 +02:00
Yuri D'Elia
070d3e49d7 Make builds more reproducible through -frandom-seed
Some randomness is used by gcc when generating symbol names, unique
values and for LTO.

Provide a constant value based on the object file name in order to avoid
object files changing build-to-build, making debugging/disassembly
easier.
2021-06-21 07:40:59 +02:00
3d-gussner
cdd5ad90da Fix timer0_fract = 0 warning
- for testing the JSON file is linked to 3d-gussner/Arduino_boards/Prusa_Merge_v1.0.3 branch
- after testing it will point to prusa3d/Arduino_boards/master
2019-12-17 12:33:24 +01:00
unknown
1c43faa179 Prepare merge to prusa3d 2019-11-29 22:06:19 +01:00