diff options
Diffstat (limited to 'rtos')
-rw-r--r-- | rtos/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rtos/CMakeLists.txt b/rtos/CMakeLists.txt index f86cb83..753b307 100644 --- a/rtos/CMakeLists.txt +++ b/rtos/CMakeLists.txt @@ -38,9 +38,14 @@ if((CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m55") AND #if ThreadX supports this configuration, build ThreadX. if (EXISTS ${CMAKE_CURRENT_LIST_DIR}/threadx/ports/${THREADX_ARCH}/${THREADX_TOOLCHAIN}/CMakeLists.txt) add_subdirectory(threadx) + if(THREADX_ARCH STREQUAL "cortex_m33" OR THREADX_ARCH STREQUAL "cortex_m55") target_compile_definitions(threadx PUBLIC TX_SINGLE_MODE_SECURE) endif() + + target_compile_options(threadx PRIVATE + -Wno-unused-function + -Wno-unused-parameter) else() message(STATUS "Skipping ThreadX build - doesn't support toolchain=${THREADX_TOOLCHAIN} and cpu=${THREADX_ARCH}") endif() |