From d5679cc8db0a6ab43369eb91089ea5fe015f552f Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Thu, 3 Mar 2022 16:30:07 +0000 Subject: MLECO-2984: Refactor components * Use UART component from Ethos-U core-platform * Components as cmake project Change-Id: I053f3a59800abc20216e6a4df8555db357e3f21d Signed-off-by: Isabella Gottardi --- scripts/cmake/common_user_options.cmake | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/cmake/common_user_options.cmake b/scripts/cmake/common_user_options.cmake index ae35925..7dc68de 100644 --- a/scripts/cmake/common_user_options.cmake +++ b/scripts/cmake/common_user_options.cmake @@ -133,8 +133,14 @@ if (NOT TARGET_PLATFORM STREQUAL native) set(DEFAULT_TA_CONFIG_FILE_PATH "${CMAKE_CURRENT_LIST_DIR}/timing_adapter/ta_config_u65_high_end.cmake") endif () - USER_OPTION(TA_CONFIG_FILE "Path to the timing adapter configuration file" - ${DEFAULT_TA_CONFIG_FILE_PATH} - FILEPATH) + USER_OPTION(ETHOS_U_NPU_TIMING_ADAPTER_ENABLED "Specifies if the Ethos-U timing adapter is enabled" + ON + BOOL) + + if (ETHOS_U_NPU_TIMING_ADAPTER_ENABLED) + USER_OPTION(TA_CONFIG_FILE "Path to the timing adapter configuration file" + ${DEFAULT_TA_CONFIG_FILE_PATH} + FILEPATH) + endif() endif() endif() -- cgit v1.2.1