zephyr/ext/hal/cmsis/CMakeLists.txt
Ioannis Glaropoulos 90a2e1f0aa ext: hal: cmsis: add define for __PROGRAM_START
For CMSIS compilation, we define __PROGRAM_START
to avoid compiling the bss/data initialization
routines provided by CMSIS.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
2019-09-26 16:35:50 +03:00

11 lines
411 B
CMake

if(CONFIG_HAS_CMSIS)
zephyr_include_directories(Include)
endif()
# As of CMSIS v5.6.0, __PROGRAM_START is to indicate whether the
# ARM vendor or the OS supplies data/bss init routine, otherwise
# the default data/bss init routine for the selected toolchain is
# added. We set the macro in build-time to guarantee compatibility
# with all existing ARM platforms.
zephyr_compile_definitions(__PROGRAM_START)