Skip to content

Commit

Permalink
ext: hal: cmsis: add define for __PROGRAM_START
Browse files Browse the repository at this point in the history
For CMSIS compilation, we define __PROGRAM_START
to avoid compiling the bss/data initialization
routines provided by CMSIS.

Signed-off-by: Ioannis Glaropoulos <[email protected]>
  • Loading branch information
ioannisg committed Sep 26, 2019
1 parent 794dc83 commit 90a2e1f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ext/hal/cmsis/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
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)

0 comments on commit 90a2e1f

Please sign in to comment.