1if( FREERTOS_PORT STREQUAL "IAR_RISC_V_GENERIC" )
2    set( VALID_CHIP_EXTENSIONS
3            "RV32I_CLINT_no_extensions" )
4
5    if( ( NOT FREERTOS_RISCV_EXTENSION ) OR ( NOT ( ${FREERTOS_RISCV_EXTENSION} IN_LIST VALID_CHIP_EXTENSIONS ) ) )
6        message(FATAL_ERROR
7                "FREERTOS_RISCV_EXTENSION \"${FREERTOS_RISCV_EXTENSION}\" is not set or unsupported.\n"
8                "Please specify it from top-level CMake file (example):\n"
9                "   set(FREERTOS_RISCV_EXTENSION RISCV_MTIME_CLINT_no_extensions CACHE STRING \"\")\n"
10                " or from CMake command line option:\n"
11                "   -DFREERTOS_RISCV_EXTENSION=RISCV_MTIME_CLINT_no_extensions\n"
12                "\n"
13                " Available extension options:\n"
14                "   ${VALID_CHIP_EXTENSIONS} \n")
15    endif()
16endif()
17