Skip to content

Commit 23c5406

Browse files
committed
cmsis_6: Integrate with zephyr build system
Signed-off-by: Robin Kastberg <[email protected]>
1 parent 783317a commit 23c5406

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

CMSIS/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
add_subdirectory(Core)

CMSIS/Core/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_include_directories(Include)
4+
5+
# As of CMSIS v5.6.0, __PROGRAM_START is to indicate whether the
6+
# ARM vendor or the OS supplies data/bss init routine, otherwise
7+
# the default data/bss init routine for the selected toolchain is
8+
# added. We set the macro in build-time to guarantee compatibility
9+
# with all existing ARM platforms.
10+
11+
zephyr_compile_definitions(__PROGRAM_START)

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_subdirectory(CMSIS)

zephyr/module.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build:
2+
cmake-ext: true
3+
kconfig-ext: true

0 commit comments

Comments
 (0)