Optimization flags for all NRF52 targets to reduce code size (#8854)

* changes of variants/nrf52840/nrf52.ini and variants/nrf52840/rak4631/platformio.ini

* try for nrf52 size reduction, faketec exclude unused radios and meshlink refactor

* can't exclude LR11X0 as in schematic there's option for LR1121

* remove -Map flag and -Wl

* removed spaces causing error

---------

Co-authored-by: macvenez <macvenez@gmail.com>
This commit is contained in:
Donato
2025-12-04 15:32:42 -06:00
committed by GitHub
co-authored by macvenez
parent aa85fbbcc4
commit 2f4eb25b2f
7 changed files with 40 additions and 220 deletions
-12
View File
@@ -12,18 +12,6 @@ build_flags = ${nrf52840_base.build_flags}
-DRADIOLIB_EXCLUDE_SX128X=1
-DRADIOLIB_EXCLUDE_SX127X=1
-DRADIOLIB_EXCLUDE_LR11X0=1
-Os
-Wl,-Map=$BUILD_DIR/output.map
build_unflags =
-Ofast
-Og
-ggdb3
-ggdb2
-g3
-g2
-g
-g1
-g0
build_src_filter = ${nrf52_base.build_src_filter} \
+<../variants/nrf52840/rak4631> \
+<mesh/eth/> \