aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2021-06-30 13:07:35 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2021-06-30 13:07:35 +0200
commita2f95d446db3252ce95aa573e6465cd3163e18b3 (patch)
treea9b91542841cdbacdf67c2c294caa5f1f672cc5a
parent3b13732f7efe119dc3eaa9692e376e1bcff3559c (diff)
downloadethos-u-core-platform-a2f95d446db3252ce95aa573e6465cd3163e18b3.tar.gz
Support 'none' accelerator
Change-Id: Iada7cfaa42dc6f5706504ee78e975730048e0f3c
-rw-r--r--cmake/helpers.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/helpers.cmake b/cmake/helpers.cmake
index 3444e64..f9c3be0 100644
--- a/cmake/helpers.cmake
+++ b/cmake/helpers.cmake
@@ -160,7 +160,11 @@ endfunction()
function(ethosu_get_architecture config)
string(TOLOWER ${config} config)
- if(${config} MATCHES "^ethos-(u[0-9]+|uz)-([0-9]+$)")
+
+ if(${config} STREQUAL "none")
+ set(ETHOSU_ARCH "none" PARENT_SCOPE)
+ set(ETHOSU_NUM_MACS 0 PARENT_SCOPE)
+ elseif(${config} MATCHES "^ethos-(u[0-9]+|uz)-([0-9]+$)")
set(ETHOSU_ARCH ${CMAKE_MATCH_1} PARENT_SCOPE)
set(ETHOSU_NUM_MACS ${CMAKE_MATCH_2} PARENT_SCOPE)
else()