diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2024-04-12 11:30:02 +0100 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2024-05-07 09:41:06 +0100 |
commit | 774c7caaaccacfa07b2ba144f1602e640a5edd86 (patch) | |
tree | d247ef17b453ad055a7f4bc4de794c132e8cb9a1 /source | |
parent | 4cef9acc2624a31111b47c25b8b1a2f37f7e0cb9 (diff) | |
download | ml-embedded-evaluation-kit-774c7caaaccacfa07b2ba144f1602e640a5edd86.tar.gz |
MLECO-4935: Refactoring user options
Refactoring for CMake configuration options to allow target platform
to drive their own defaults for certain dependent options.
For example, the MPS3 target platform defaults to SSE-300 sub-system
while native target doesn't need to worry about sub-system and CMSIS
options which it will never use. This allows MPS4 target to default
to SSE-315 and set the NPU arch to Arm Ethos-U65 as it should, which
otherwise would have had to be explictly specified by the user.
A welcome by-product of this is also that the options summary at the
end of a successful CMake configuration stage would only include the
settings that are actually used by the given target.
Change-Id: Ibb7f8233d427cd33f39eeb4c71d88193aa998ebd
Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
Tested-by: mlecosys <mlecosys@arm.com>
Reviewed-by: Alex Tawse <alex.tawse@arm.com>
Reviewed-by: Conor Kennedy <conor.kennedy@arm.com>
Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
Diffstat (limited to 'source')
-rw-r--r-- | source/hal/source/components/npu_ta/CMakeLists.txt | 2 | ||||
-rw-r--r-- | source/math/CMakeLists.txt | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/source/hal/source/components/npu_ta/CMakeLists.txt b/source/hal/source/components/npu_ta/CMakeLists.txt index 9956384..2030849 100644 --- a/source/hal/source/components/npu_ta/CMakeLists.txt +++ b/source/hal/source/components/npu_ta/CMakeLists.txt @@ -90,5 +90,5 @@ target_link_libraries(${ETHOS_U_NPU_TA_COMPONENT} PUBLIC # Display status message(STATUS "CMAKE_CURRENT_SOURCE_DIR: " ${CMAKE_CURRENT_SOURCE_DIR}) message(STATUS "*******************************************************") -message(STATUS "Library : " ${ETHOS_U_NPU_TA_COMPONENT}) +message(STATUS "Library : " ${ETHOS_U_NPU_TA_COMPONENT}) message(STATUS "*******************************************************") diff --git a/source/math/CMakeLists.txt b/source/math/CMakeLists.txt index 9b61905..2cd7989 100644 --- a/source/math/CMakeLists.txt +++ b/source/math/CMakeLists.txt @@ -1,5 +1,6 @@ #---------------------------------------------------------------------------- -# SPDX-FileCopyrightText: Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com> +# SPDX-FileCopyrightText: Copyright 2022, 2024 Arm Limited and/or its +# affiliates <open-source-office@arm.com> # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -34,11 +35,11 @@ target_include_directories(arm_math PUBLIC include) target_link_libraries(arm_math PRIVATE log) if (${CMAKE_CROSSCOMPILING}) - include(${CMAKE_SCRIPTS_DIR}/cmsis-dsp.cmake) + include(cmsis-dsp) target_link_libraries(arm_math PUBLIC cmsis-dsp) endif () message(STATUS "*******************************************************") -message(STATUS "Library : " arm_math) -message(STATUS "CMAKE_SYSTEM_PROCESSOR : " ${CMAKE_SYSTEM_PROCESSOR}) +message(STATUS "Library : " arm_math) +message(STATUS "CMAKE_SYSTEM_PROCESSOR : " ${CMAKE_SYSTEM_PROCESSOR}) message(STATUS "*******************************************************") |