CMake: Add support for cmsis dir

pull/13566/head
Hugues Kamba 2020-07-20 17:53:00 +01:00
parent 6dc5f5a582
commit d83648937f
3 changed files with 44 additions and 0 deletions

13
cmsis/CMakeLists.txt Normal file
View File

@ -0,0 +1,13 @@
# SPDX-License-Identifier: Apache-2.0
mbed_add_cmake_directory_if_labels("TARGET")
target_sources(mbed-os
PRIVATE
RTE_Components.h
)
target_include_directories(mbed-os
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -0,0 +1,19 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-os
PRIVATE
irq_ctrl_gic.c
)
if(${MBED_TOOLCHAIN} STREQUAL "IAR")
target_sources(mbed-os
PRIVATE
TOOLCHAIN_IAR/cmain.S
)
endif()
target_include_directories(mbed-os
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-os
PRIVATE
mbed_tz_context.c
)
target_include_directories(mbed-os
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)