mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-07-27 08:14:37 +00:00
Support configurable RISC-V chip extension (#773)
* Support configurable RISC-V chip extension Added the FREERTOS_RISCV_EXTENSION option to allow the user to select which chip extension they want included. Removed the port for pulpino to instead use the new option. * Add port GCC_RISC_V_GENERIC and IAR_RISC_V_GENERIC * Add two rics-v generic ports to support FREERTOS_RISCV_EXTENSION config --------- Co-authored-by: Joe Benczarski <jbenczarski@trijicon.com> Co-authored-by: chinglee-iot <61685396+chinglee-iot@users.noreply.github.com> Co-authored-by: Ching-Hsin Lee <chinglee@amazon.com> Co-authored-by: kar-rahul-aws <118818625+kar-rahul-aws@users.noreply.github.com> Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
This commit is contained in:
16
portable/IAR/RISC-V/chip_extensions.cmake
Normal file
16
portable/IAR/RISC-V/chip_extensions.cmake
Normal file
@@ -0,0 +1,16 @@
|
||||
if( FREERTOS_PORT STREQUAL "IAR_RISC_V_GENERIC" )
|
||||
set( VALID_CHIP_EXTENSIONS
|
||||
"RV32I_CLINT_no_extensions" )
|
||||
|
||||
if( ( NOT FREERTOS_RISCV_EXTENSION ) OR ( NOT ( ${FREERTOS_RISCV_EXTENSION} IN_LIST VALID_CHIP_EXTENSIONS ) ) )
|
||||
message(FATAL_ERROR
|
||||
"FREERTOS_RISCV_EXTENSION \"${FREERTOS_RISCV_EXTENSION}\" is not set or unsupported.\n"
|
||||
"Please specify it from top-level CMake file (example):\n"
|
||||
" set(FREERTOS_RISCV_EXTENSION RISCV_MTIME_CLINT_no_extensions CACHE STRING \"\")\n"
|
||||
" or from CMake command line option:\n"
|
||||
" -DFREERTOS_RISCV_EXTENSION=RISCV_MTIME_CLINT_no_extensions\n"
|
||||
"\n"
|
||||
" Available extension options:\n"
|
||||
" ${VALID_CHIP_EXTENSIONS} \n")
|
||||
endif()
|
||||
endif()
|
||||
Reference in New Issue
Block a user