-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Co-authored-by: chinglee-iot <[email protected]> Co-authored-by: Ching-Hsin Lee <[email protected]> Co-authored-by: kar-rahul-aws <[email protected]> Co-authored-by: Soren Ptak <[email protected]>
- Loading branch information
1 parent
5281427
commit 37678b0
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |