STM32F1: Reduce binary by 2K by dropping full path asserts (#14807)

This commit is contained in:
Tanguy Pruvot 2019-08-02 14:28:38 +02:00 committed by Scott Lahteine
parent e85eca2630
commit 8efa3455c2

View file

@ -262,6 +262,7 @@ framework = arduino
board = genericSTM32F103RE board = genericSTM32F103RE
build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
${common.build_flags} -std=gnu++14 ${common.build_flags} -std=gnu++14
-DDEBUG_LEVEL=0
build_unflags = -std=gnu++11 build_unflags = -std=gnu++11
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
lib_ignore = U8glib-HAL lib_ignore = U8glib-HAL
@ -286,7 +287,9 @@ board = genericSTM32F103RC
#board_build.core = maple #board_build.core = maple
extra_scripts = buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py extra_scripts = buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
${common.build_flags} ${common.build_flags} -std=gnu++14
-DDEBUG_LEVEL=0
build_unflags = -std=gnu++11
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
lib_ignore = lib_ignore =
c1921b4 c1921b4
@ -312,6 +315,7 @@ board = genericSTM32F103RC
extra_scripts = buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py extra_scripts = buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py
build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
${common.build_flags} -std=gnu++14 ${common.build_flags} -std=gnu++14
-DDEBUG_LEVEL=0
build_unflags = -std=gnu++11 build_unflags = -std=gnu++11
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
lib_ignore = lib_ignore =
@ -564,6 +568,7 @@ platform = ststm32
framework = arduino framework = arduino
board = malyanM200 board = malyanM200
build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
-DDEBUG_LEVEL=0
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1> src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
#-<frameworks> #-<frameworks>
lib_ignore = lib_ignore =