diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | rtos/CMakeLists.txt | 7 |
2 files changed, 2 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 537e9a7..fcb9605 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,6 @@ include(tensorflow.cmake) # Build RTOS add_subdirectory(rtos) -target_link_libraries(ethosu_core INTERFACE ethosu_core_rtos) # Build applications add_subdirectory(applications) diff --git a/rtos/CMakeLists.txt b/rtos/CMakeLists.txt index 7c15d9e..149779e 100644 --- a/rtos/CMakeLists.txt +++ b/rtos/CMakeLists.txt @@ -16,11 +16,8 @@ # limitations under the License. # -add_library(ethosu_core_rtos INTERFACE) - -# Include FreeRTOS kernel & link with ethosu_rtos target -if(CORE_SOFTWARE_RTOS_LOWER STREQUAL "freertos") +# Include FreeRTOS kernel +if(CORE_SOFTWARE_RTOS_LOWER STREQUAL "freertos" OR CORE_SOFTWARE_RTOS_LOWER STREQUAL "all") set(FREERTOS_KERNEL_PATH "${CMAKE_CURRENT_SOURCE_DIR}/freertos/freertos_kernel" CACHE PATH "Path to FreeRTOS kernel.") add_subdirectory(freertos_config) - target_link_libraries(ethosu_core_rtos INTERFACE freertos_kernel) endif() |