From 3be2623cb0ccf4a86bbf06be09d438767a960ca5 Mon Sep 17 00:00:00 2001 From: Kshitij Sisodia Date: Fri, 29 Oct 2021 12:29:06 +0100 Subject: MLECO-2512: Minor improvement for helper scripts. Python scripts 'build_default.py' and 'set_up_default_resources.py' now allow building for non-default Ethos-U configurations: H32, H64, H256 and Y512. Change-Id: Iefdbf135410396c4dc0be73462644725d4b47910 --- scripts/cmake/bare-metal-sources.cmake | 4 ++++ scripts/cmake/toolchains/bare-metal-armclang.cmake | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/cmake/bare-metal-sources.cmake b/scripts/cmake/bare-metal-sources.cmake index 3fe9b1b..c797d5f 100644 --- a/scripts/cmake/bare-metal-sources.cmake +++ b/scripts/cmake/bare-metal-sources.cmake @@ -60,6 +60,10 @@ if (ETHOS_U_NPU_ENABLED) "${DEFAULT_NPU_MEM_MODE}" STRING) + USER_OPTION(ETHOS_U_NPU_CONFIG_ID "Specifies the configuration ID for the NPU." + "${DEFAULT_NPU_CONFIG_ID}" + STRING) + if (ETHOS_U_NPU_MEMORY_MODE STREQUAL Sram_Only) if (ETHOS_U_NPU_ID STREQUAL U55) diff --git a/scripts/cmake/toolchains/bare-metal-armclang.cmake b/scripts/cmake/toolchains/bare-metal-armclang.cmake index d07aa9e..c1f066b 100644 --- a/scripts/cmake/toolchains/bare-metal-armclang.cmake +++ b/scripts/cmake/toolchains/bare-metal-armclang.cmake @@ -43,7 +43,7 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL cortex-m55) set(FLOAT_ABI hard) set(ARM_MATH_DSP 1) set(ARM_MATH_LOOPUNROLL 1) - set(CPU_LINK_OPT "--cpu=8.1-M.Main.dsp") + set(CPU_LINK_OPT "--cpu=Cortex-M55") elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL cortex-m33) # Flags for cortex-m33 to go here endif() -- cgit v1.2.1