summaryrefslogtreecommitdiff
path: root/scripts/cmake
AgeCommit message (Collapse)Author
2023-11-30MLECO-4371 Update dependencies to 23.11 release components23.11-rc1Richard Burton
* Updated NPU components and dependencies (core-driver, core-platform, Vela, CMSIS, TensorFlow Lite Micro) to 23.11 release SHAs. * Changed Python version to 3.10 * Updated release notes and other documentation * Added workarounds to scripts in order to address build issues Signed-off-by: Aron Virginas-Tar <aron.virginas-tar@arm.com> Change-Id: I0a639b80881b53eebb216085b7e6764e3be8ca67
2023-11-29Fix for build issues with WSL when PATH contains special charactersRichard Burton
Co-authored-by: Gabor Abonyi <gabor.abonyi@arm.com> Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I6792576cf21285d73aa8213a4497cf23502ff795
2023-11-20MLECO-4490: Upgrade MLEK Catch Unit testsLiam Barry
*Removed default behaviour of unit-test executables to redirect output to file. *Accompanying change made to CI script to generate xml files there instead. *Switched to newer minor version of Catch. *Note: Support for simultaneous output to console and file is available in new major version (Catch 3). Other unit test cleanup: * Redundant warnings about common tests output removed * Static cast added to silence compiler warning * Removed additional printing in RNNoiseModelTests Signed-off-by: Liam Barry <liam.barry@arm.com> Change-Id: If9d7f366ec205a7cd49a45198a15867ef7b75afd
2023-11-13Modifications to linker scriptsRichard Burton
* Change reference to all ops resolver * Added our own 'all ops resolver' * Move Labels objects out of BRAM for simple_platform * Minor fixes to documentation Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I8b0d66ce83287f2bc027cfc36a1f378c97755481
2023-11-06MLECO-4473: Ensuring Labels objects are not placed in BRAMRichard Burton
Signed-off-by: Richard Burton<richard.burton@arm.com> Change-Id: I833f5edfbd080a67f2863a250be3199879d5f81f
2023-11-03MLECO-3640 MLECO-3678: Adding support for M85 in GCCRichard Burton
Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I087e23f43b41fa0ef97ec7dcaeba807f6cba17e7
2023-09-05MLECO-4074: bump up version of armclang to 6.1923.08-rc223.08Nina Drozd
* issues identified with armclang 6.17 and 6.18 * updates in cmake for minimum version * updates in release notes and documentation Change-Id: Iffa711d9d95a509f5c07cd55f59a49bdcf3e9d6a
2023-06-09MLECO-4065: Revising scripts to use Python3.923.05Kshitij Sisodia
Revising documentation and scripts to use Python3.9 explicitly to remove the need for installing it system-wide that might break a distro's desktop and pacakge manager utilities. Change-Id: I683b55dd0243d0a726dc94eba2431005d4897c8c Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2023-03-28MLECO-3754: Cmsis pack updatesIsabella Gottardi
Change-Id: Ib041604867e761a006d74cef16a33c27d86648eb Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2023-03-15MLECO-3666: Updating to 23.02 dependencies.23.02-rc1Kshitij Sisodia
Updating dependency submodules to 23.02 versions. See https://review.mlplatform.org/plugins/gitiles/ml/ethos-u/ethos-u/+/refs/tags/23.02/23.02.json Change-Id: If0e396decadc1b4e3c6b263c65f75ccf0dafed28 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2023-02-16MLECO-3847: Optimisation flag for TensorFlow Lite MicroKshitij Sisodia
Overriding the default THIRD_PARTY_KERNEL_OPTIMIZATION_LEVEL flag for comilation of Arm CMSIS-NN library. GNU linker script also needed to be modified with this change because of increase in the code footprint. Change-Id: I65c76fcaf4b6421533086a0905b2e6f0048b46fd Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-12-29MLECO-3747: Minor changes to Catch2 inclusionKshitij Sisodia
Catch2, included for tests on native target, is now added using FetchContent to download it at configuration stage. Minor improvements added to prevent name clashes if this project is used as a submodule in other projects where Catch2 is already a named dependency/target. Change-Id: I6f0ff02704e54a5c4cefe499ac80d434cf89b463 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-12-06MLECO-3710: Fix for freshly updated submodule build issue.Kshitij Sisodia
TensorFlow Lite Micro can have stale third party components downloaded by an older version. On a submodule update, our recommendation to users would be to use `-DTENSORFLOW_LITE_MICRO_CLEAN_DOWNLOADS=ON` to clean the older downloads. Moving the triggered cleaning and refresh to CMake configuration stage (with no parallel build option). This should have a better chance of success with the subsequent build step. Change-Id: I305439c09658f49765ecc15eb1ce0c8b914dd30a
2022-12-01MLECO-3620 MLECO-3619: Update to 22.11 dependencies22.11-rc122.11Richard Burton
* CMSIS-NN is now a seperate dependency * Added inclusive language commitment * TensorFlow Lite Micro dependency is moved ahead of 22.11 to fix compilation issue Change-Id: I60e3311ff7da2ce064cbcdca054a86bdd1f620d8
2022-11-17MLECO-3583: Update copyright notice according to new guidelinesRichard Burton
Change-Id: I0f057b33993e5196a60e52f4fb0c60e09693dcfe
2022-11-09MLECO-3247: Arm Corstone-310 deployment instructions updateKshitij Sisodia
Minor documentation updates for Corstone-310 target along with version bump for the project and updates to release notes. Change-Id: I8b33b66961ab0517864539d88501ad5d71219368 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-11-08MLECO-3608: Fix memory regions for gcc linker.Maksims Svecovs
Move `text` to .text.at_bram. We have to do it explicitly when linking with gcc (ld). Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: Ib3c377227790568046c9495792d186e45ab06c15
2022-10-17MLECO-3575: Add option to manually set PARALLEL_JOBS for buildConor Kennedy
* Check CMAKE_BUILD_PARALLEL_LEVEL and use this option to set the value of PARALLEL_JOBS Signed-off-by: Conor Kennedy <conor.kennedy@arm.com> Change-Id: I039d88a1099932978e00a711fe58d31a85d2cd06
2022-10-12MLECO-3100: Added summary document of use-casesKshitij Sisodia
Update for use-case API and CMSIS pack. Change-Id: Ic730a80fa43ba2a6e3eaa05333b61d3e1677b04e Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-10-05MLECO-3552: Workaround for toolchain presetMaksims Svecovs
There is a currently known bug that ${fileDir} in included presets evaluates to the path of parent file, not path of the file with ${fileDir} macro. To be able to use the toolchain preset in case of MLEK included as submodule - add an environment variable to be set by the parent project. Since this variable is not set by the MLEK project - it does not affect the functionality in MLEK. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: I4b789a12533f0474ed5490cf7a793e953a110898
2022-10-03MLECO-3149: Add CTest driven FVP runs for non-native targets.Sarah Blades
Additional CMake configuration parameters required: * `BUILD_FVP_TESTS`: Selects whether these tests are built, OFF by default. * `FVP_PATH`: Path to the FVP that MUST be provided for the configuration to succeed. Change-Id: I741379cd0a6078a3e2c3163e6b253b2f5dc25c58 Signed-off-by: Sarah Blades <sarah.blades@arm.com>
2022-10-03MLECO-3545: Minor updates to CMSIS-packsKshitij Sisodia
CMSIS-pack under resources and the pack generation input YML file updated. Change-Id: I4883d635ec3ce6eadb0ce38bbd962f3a5e8f92c3 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-09-28MLECO-3518: Separates CMakePrestsMaksims Svecovs
Separates CMakePresets to respective. Adds options preset file with log-level and single-input for use-cases. Adds use-case file with base build preset with all the targets. Adds a configurable targets to all build presets. Adds additional config/build preset to show-off options-presets. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: Id82ce9c5b8d7cc48b80d784141dc22efa2690222
2022-09-27MLECO-3545: Removing PIDX and updating pack URLKshitij Sisodia
Version for generated pack changed to "22.8.0-Beta" and URL updated for packgen's YML input file. Change-Id: Iab20c0c1ebf70bdf08749e8ad6c7b9a7d458b82b Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-09-26MLECO-3546: Adding CMSIS pack with pidx fileKshitij Sisodia
Adding beta version of the CMSIS pack, created from the main branch. Adding a corresponding PIDX file for this pack to be linked to the public listing of Arm Keil packs. Packs, pidx and related resources will be available under 'resources/cmsis-packs/' directory. Change-Id: Iff6fe4d2a1cb14ae72442eb62664bf4ccd729c3c Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-09-26MLECO-3254 Default to using only one file per UCEanna O Cathain
Signed-off-by: Eanna O Cathain <eanna.ocathain@arm.com> Change-Id: I4a1cd2b5746cb479ae0d81ed973961cec2f3046e
2022-09-21Fix for build with NPU disabledNina Drozd
* if NPU timing adapter enabled is defined and target subsystem is sse-310 * set timing adapter to off Change-Id: I53ca0bd8a56e3ede009b745dba7aa8dbee7a81dc
2022-09-01MLECO-3537: Fix Cmake build issue when using build-apisConor Kennedy
* Filter ".md" entry from UC_API_LIST Signed-off-by: Conor Kennedy <conor.kennedy@arm.com> Change-Id: Iec0f3fd1960b4e3f9ff1b2f730befedb0143ca30
2022-08-31MLECO-3449: Update dependancies to 22.08 tagsMaksims Svecovs
Update dependencies to be aligned with 22.08 release of mlplatform according to: https://review.mlplatform.org/plugins/gitiles/ml/ethos-u/ethos-u/+/refs/heads/master/22.08.json CMSIS-DSP is moved to a separate repository, this patch adds a new repository along with user build parameter. Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: I356fb19b5dac87a21adfc34c67f9699131666074
2022-08-16MLECO-3321: Updated TensorFlow Lite Micro.Kshitij Sisodia
Updated to latest version of TensorFlow Lite Micro and removed forcing TENSORFLOW_LITE_MICRO_TARGET_ARCH to Arm Cortex-M55 for SSE-310 (now it is correctly set to Cortex-M85 instead). Change-Id: Ib1e8680a8d2ea803e0e003032119a10b1d71754e Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-08-16MLECO-3319: Documentation updates for Arm® Corstone™-310.Kshitij Sisodia
Documentation updates around use of Arm® Corstone™-310 AVH, especially in terms of use of timing adapters (TA). Also, use of TA's is forced off for SSE-310 subsystem's CMake configuration. Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com> Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com> Change-Id: I66a87060d8d47ce2580aa15f3908be20162eab54
2022-08-15MLECO-3103: updates to ml embedded use case API packNina Drozd
* refactor component cgroup and csub names for easier inclusion by projects * update version to format expected by cpackget tool * update use case api version Change-Id: I00c71219ca95299787ec4fd79dca8ff2b2d50494
2022-06-10MLECO-3148 Generating the output test result fileEanna O Cathain
Change-Id: I584a0d8523b18025e8f20c31750baa2e6cbef49b
2022-06-02MLECO-3148 Enabling Ctest driven testingEanna O Cathain
Signed-off-by: Eanna O Cathain <eanna.ocathain@arm.com> Change-Id: Ica67662d20b0c02b75418f79d4ba2f4d18373310
2022-06-01MLECO-2968 Create a docker image with all requirementsKshitij Sisodia
Added a Dockerfile to setup and install requirements for the ml-embedded-evaluation-kit repository. Also included minor change (MLCE-859) for NPU components' source file. Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I621fb2991218a451a0e8c33e14032b9c9e36709e
2022-05-25MLECO-3290: Correction for TAKshitij Sisodia
Timing adapter parameter correction for Arm Ethos-U65's default configuration. Change-Id: I5ec9412f4893d0bfb0447ce71b788099123b6cf9
2022-05-23MLECO-3225: Using official support for Arm Cortex-M85 CPU.Kshitij Sisodia
* CMake version requirement bumped up to 3.21.0 * CMake 3.22.4 installed in the local Python virtualenv * CPU flags updated in toolchain files. * Using __ARM_FEATURE_DSP instead of potentially defining ARM_MATH_DSP wrongly. * CMake project version bumped up to 22.05.0 Changes also made for MLECO-3107 (pack generation): * TensorFlow Lite Micro CMSIS-pack version updated to 1.22.02. * Change to using __ARM_FEATURE_DSP will also help the generated pack. Partial changes for MLECO-3095: * CMSIS updated to version post 5.9.0 * TensorFlow Lite Micro updated to latest available * Ethos-U driver and core-platform repositories updated to 20.05_rc2 tags. Change-Id: I012c9e65897aed8ce589cff9bfe3a19efc3edeb9 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-05-17MLECO-2985 Adding Corstone-310 supportKshitij Sisodia
Change-Id: Ifa4b11154478355c10cb3e747b9938a74afd242b Signed-off-by: Eanna O Cathain <eanna.ocathain@arm.com>
2022-05-16Minor change to help build API libs independently.Richard Burton
* Remove unused CMake left behind after API refactoring. * Include TensorFlow source path directory for common_api target when building CMSIS packs. Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I3ed63781edddf24887f61a971bfadaa037739fa8
2022-05-13MLECO-3101: Minor changes for CMSIS packKshitij Sisodia
Improvements based on feedback from initial tests done with the generated pack. Change-Id: Ia769dd6264c53e6b9337473e1c50bdfa6469a216 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-05-09MLECO-3184: Adding helper for CMSIS pack genKshitij Sisodia
Adding CMakeLists and use-case-api.yml file under scripts/cmake. These files can be used by CMSIS pack generation tools. Change-Id: I6fff715c71fc068184a1a038e6b70a3547c30ff4
2022-04-21MLECO-3110: Fix for warnings from TensorFlow Lite MicroKshitij Sisodia
Changes to fix "Pillow not found" warnings from TensorFlow Lite Micro build. Change-Id: I42a9b3f6df746ac3e34585e0c79ffdf35da97aef Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-04-11MLECO-3071: Reducing stack sizesKshitij Sisodia
After evaluating stack sizes (after HAL refactoring) we can safely reduce the stack allocation for all the applications. Change-Id: I7d9cd4edd28753fe3f8a668d8c557c2788f4c823 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
2022-03-14MLECO-2919: Restructuring to standardise HAL APIsKshitij Sisodia
* LCD module component created (removed from individual platform packs). * retarget.c moved out into its own component that wraps the uart module. It also have the native stub for GetLine => paved the way for removing data_acq module from profiles. * shortened names for components' dir for npu and ta * remove peripheral_memmap and peripheral_irqs headers from platform_drivers.h. There should be no need for these to be included in the top level now. These should be private headers. * cmsis_device moved in as a component. * Pyenv created by set_up_default_resource.py will also install packages that CMake's source generator needs. TODO's: * Remove timer from profiles (MLECO-3096) Change-Id: I9d6ea2f4f291788f40a16ed507019563c8d7f205
2022-03-04MLECO-2984: Refactor componentsKshitij Sisodia
* Use UART component from Ethos-U core-platform * Components as cmake project Change-Id: I053f3a59800abc20216e6a4df8555db357e3f21d Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2022-03-04MLECO-2978: Update to 22.02 dependenciesRichard Burton
* Core-platform now a depdenency for timing adapter Signed-off-by: Richard Burton <richard.burton@arm.com> Change-Id: I54f3773bdf91083fa1513be15372fcf2231bea2c
2022-03-01MLECO-2881: Minor improvements for downloaded resourcesKshitij Sisodia
Check could have been bypassed if the script path provided as an argument was incorrect. Also, a minor update in the CMake function to fix the path. Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com> Change-Id: Id3cd4027843783e3ed8700eac503e7ba3f09ad04
2022-03-01MLECO-2983: Preliminary support to allow semihostingKshitij Sisodia
Adding basic support to allow applications to build with semihosting support. Default state is always disabled. Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com> Change-Id: I1d34c3a246560aaffcb34eee801e1a87d887d559
2022-02-28MLECO-2976: Configurable Ethos-U cache size for Dedicated_SramIsabella Gottardi
MLECO-2949: Platform drivers should own NPU and TA init Change-Id: I13606a0197f137816bae803eb9d7d46c358b5fb8 Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
2022-02-25MLECO-2881: Revise resources_downloaded based on optimised models' metadataIsabella Gottardi
Change-Id: I12777c3818463c11d6351db0b4961a2bc0b00b18 Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>