mirror of
https://github.com/oltaco/Adafruit_nRF52_Bootloader_OTAFIX.git
synced 2026-10-23 17:24:04 +00:00
fix: add size optimization
This flag is also present in the Makefile and optimises the resulting binary for the size of the binary. Without that flag the flash consumption would be too high to fit inside the allocated space. Signed-off-by: Andreas Kurz <info@akurz.net>
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -170,6 +170,7 @@ target_compile_options(bootloader PUBLIC
|
||||
-Wmissing-format-attribute
|
||||
-Wno-endif-labels
|
||||
-Wunreachable-code
|
||||
-Os
|
||||
# Suppress warning caused by SDK
|
||||
-Wno-unused-parameter -Wno-expansion-to-defined -Wno-array-bounds
|
||||
)
|
||||
@@ -333,4 +334,4 @@ add_custom_target(flash-mbr
|
||||
|
||||
add_custom_target(flash-erase
|
||||
COMMAND ${NRFJPROG} -f nrf52 --eraseall
|
||||
)
|
||||
)
|
||||
Reference in new issue
Block a user