Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add port GCC_RISC_V_GENERIC and IAR_RISC_V_GENERIC #1

Merged

Conversation

chinglee-iot
Copy link

@chinglee-iot chinglee-iot commented Sep 4, 2023

Description

In order not to break existing risc-v project with cmake, two new ports are created:

  • GCC_RISC_V_GENERIC
  • IAR_RISC_V_GENERIC

FREERTOS_CHIP_EXTENSION has to be specify when using these ports.

Test Steps

Create a RISC-V cmake project to use port GCC_RISC_V_GENERIC.
There will be error message If FREERTOS_RISCV_EXTENSION is not set or not supported.

cmake -S . -B build
-- The C compiler identification is GNU 10.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at /home/chinglee/kernel/FreeRTOS/FreeRTOS/Source/portable/GCC/RISC-V/chip_extensions.cmake:9 (message):
  FREERTOS_RISCV_EXTENSION "RISCV_MTIMEaefae_CLINT_no_extensions" is not set
  or unsupported.

  Please specify it from top-level CMake file (example):

     set(FREERTOS_RISCV_EXTENSION RISCV_MTIME_CLINT_no_extensions CACHE STRING "")
   or from CMake command line option:
     -DFREERTOS_RISCV_EXTENSION=RISCV_MTIME_CLINT_no_extensions



   Available extension options:
     Pulpino_Vega_RV32M1RM;RISCV_MTIME_CLINT_no_extensions;RISCV_no_extensions;RV32I_CLINT_no_extensions

Call Stack (most recent call first):
  /home/chinglee/kernel/FreeRTOS/FreeRTOS/Source/portable/CMakeLists.txt:2 (include)


-- Configuring incomplete, errors occurred!
See also "/home/chinglee/kernel/FreeRTOS/FreeRTOS/Demo/RISC-V-Qemu-virt_GCC/build/CMakeFiles/CMakeOutput.log".

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

* Add two rics-v generic ports to support FREERTOS_RISCV_EXTENSION
  config
@JoeBenczarski JoeBenczarski merged commit 69b70ad into JoeBenczarski:main Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants