riscv/cmake: fix Toolchain.cmake issue

This fixes the following issue when configuring canmv230:master
with Ubuntu stock toolchain and cmake 3.22:

```
CMake Error at .../arch/risc-v/src/cmake/Toolchain.cmake:218 (if):
  if given arguments:
    "STREQUAL" "GNU_RVG"
  Unknown arguments specified
```

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu 2024-07-15 11:58:07 +08:00 committed by Xiang Xiao
parent 2900fca28e
commit 8bdc975abb
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ if(CONFIG_DEBUG_SYMBOLS)
endif()
# Generic GNU RVG toolchain
if(${CONFIG_RISCV_TOOLCHAIN} STREQUAL GNU_RVG)
if(CONFIG_RISCV_TOOLCHAIN STREQUAL GNU_RVG)
set(ARCHCPUEXTFLAGS i)