forked from FreeRTOS/FreeRTOS-Kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from chinglee-iot/joe-riscv-cmake-support
Add port GCC_RISC_V_GENERIC and IAR_RISC_V_GENERIC
- Loading branch information
Showing
4 changed files
with
70 additions
and
13 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() |