summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKshitij Sisodia <kshitij.sisodia@arm.com>2024-04-12 11:30:02 +0100
committerKshitij Sisodia <kshitij.sisodia@arm.com>2024-05-07 09:41:06 +0100
commit774c7caaaccacfa07b2ba144f1602e640a5edd86 (patch)
treed247ef17b453ad055a7f4bc4de794c132e8cb9a1 /docs
parent4cef9acc2624a31111b47c25b8b1a2f37f7e0cb9 (diff)
downloadml-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 'docs')
-rw-r--r--docs/sections/customizing.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/sections/customizing.md b/docs/sections/customizing.md
index 42be12a..2a946aa 100644
--- a/docs/sections/customizing.md
+++ b/docs/sections/customizing.md
@@ -536,8 +536,8 @@ However, for clarity, here is the full list of available functions:
## Reading user input from console
-The platform package under HAL must provide an implementation for a function `GetLine`. This is then wrapped by HAL to
-expose a function called `hal_get_user_input`.
+The platform package under HAL must provide an implementation for a function `GetLine`. This is then wrapped by HAL to
+expose a function called `hal_get_user_input`.
```C++
char ch_input[128];
@@ -774,9 +774,9 @@ function like this:
```cmake
add_linker_script(
- ${PARSED_TARGET_NAME} # Target
- ${CMAKE_SCRIPTS_DIR}/platforms/mps3 # linker scripts directory path
- ${LINKER_SCRIPT_NAME}) # Name of the file without suffix
+ ${PARSED_TARGET_NAME} # Target
+ ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/${TARGET_SUBSYSTEM} # Linker scripts directory path
+ ${LINKER_SCRIPT_NAME}) # Name of the file without suffix
```
Please see existing platforms sources and build scripts for more details.