mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04: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:
parent
5281427a99
commit
37678b0656
4 changed files with 61 additions and 0 deletions
19
portable/GCC/RISC-V/chip_extensions.cmake
Normal file
19
portable/GCC/RISC-V/chip_extensions.cmake
Normal file
|
@ -0,0 +1,19 @@
|
|||
if( FREERTOS_PORT STREQUAL "GCC_RISC_V_GENERIC" )
|
||||
set( VALID_CHIP_EXTENSIONS
|
||||
"Pulpino_Vega_RV32M1RM"
|
||||
"RISCV_MTIME_CLINT_no_extensions"
|
||||
"RISCV_no_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()
|
Loading…
Add table
Add a link
Reference in a new issue