diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-09-13 13:13:30 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-09-13 13:13:30 +0200 |
commit | dace45aab90a212b34ca1541251e45687ad2f3f4 (patch) | |
tree | c0f0f8a8f0718e94984446da7a90319e188ce838 /cmsis.cmake | |
parent | 39a03248a3fc2168332e8bd9b663935f5282243d (diff) | |
download | ethos-u-core-software-dace45aab90a212b34ca1541251e45687ad2f3f4.tar.gz |
Bug fix matching CPU number
Change-Id: Ie75eb87cf06cd7bad5f17ce121ea64037c0e4788
Diffstat (limited to 'cmsis.cmake')
-rw-r--r-- | cmsis.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmsis.cmake b/cmsis.cmake index daa8132..c7922c4 100644 --- a/cmsis.cmake +++ b/cmsis.cmake @@ -17,7 +17,7 @@ # # Extract the CPU number from the system processor -string(REGEX REPLACE "^cortex-m([0-9]+[a-z]*)" "\\1" CPU_NUMBER ${CMAKE_SYSTEM_PROCESSOR}) +string(REGEX REPLACE "^cortex-m([0-9]+[a-z]*).*" "\\1" CPU_NUMBER ${CMAKE_SYSTEM_PROCESSOR}) if(NOT CPU_NUMBER) message(FATAL_ERROR "System processor '${CMAKE_SYSTEM_PROCESSOR}' not supported. Should be cortex-m<nr>.") endif() |