diff options
author | alexander <alexander.efremov@arm.com> | 2022-02-11 13:23:22 +0000 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-02-11 18:11:35 +0000 |
commit | cb8a987ce714283b66db49d1bc9d5b108caaa707 (patch) | |
tree | b00f86587c8b15d0391691d415220b2bbbcf6ea9 /scripts/cmake/util_functions.cmake | |
parent | 31ae9f09bb3535975595e999fbc7baca889e46e8 (diff) | |
download | ml-embedded-evaluation-kit-cb8a987ce714283b66db49d1bc9d5b108caaa707.tar.gz |
MLECO-2752: Minor refactoring for native global steps.
And further optimisations of extendability for platform build
steps. Added a list for excluded use-cases.
Change-Id: I5a9398bbeb595a5bf2ea39b81623e4f20238f948
Signed-off-by: alexander <alexander.efremov@arm.com>
Diffstat (limited to 'scripts/cmake/util_functions.cmake')
-rw-r--r-- | scripts/cmake/util_functions.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/cmake/util_functions.cmake b/scripts/cmake/util_functions.cmake index f9742f7..447265c 100644 --- a/scripts/cmake/util_functions.cmake +++ b/scripts/cmake/util_functions.cmake @@ -174,3 +174,20 @@ function(download_file_from_modelzoo model_zoo_version file_sub_path download_pa endif() endfunction() + +function(add_platform_build_configuration) + + set(oneValueArgs TARGET_PLATFORM) + cmake_parse_arguments(PARSED "" "${oneValueArgs}" "" ${ARGN} ) + message(STATUS "Searching for ${PARSED_TARGET_PLATFORM} build configuration") + list(APPEND PLATFORM_BUILD_CONFIG_DIRS ${CMAKE_SCRIPTS_DIR}/platforms) + + FIND_PATH(PLATFORM_BUILD_CONFIG + NAMES build_configuration.cmake + PATH_SUFFIXES ${PARSED_TARGET_PLATFORM} + PATHS ${PLATFORM_BUILD_CONFIG_DIRS} + ) + + message(STATUS "Found build configuration: ${PLATFORM_BUILD_CONFIG}") + include(${PLATFORM_BUILD_CONFIG}/build_configuration.cmake) +endfunction()
\ No newline at end of file |