apache / apache/nuttx

CMake Support for The JH7110 Board

Open
#11,870 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

I need to add cmake support because Kconfig refuses to use LLVM/Clang for this board.

I am considering making a PR for this, however I ran into an issue with cmake as well. Removing this line https://github.com/apache/nuttx/blob/master/CMakeLists.txt#L401 let me use a custom clang executable for the toolchain. Without it, CMake tries to find riscv64-unknown-elf-gcc which I don't have. I'd rather not build gcc multiple times for different targets - that's why I'm using LLVM.

Contributor guide

Open the contributing guide

Research direction

Start with CMakeLists.txt around line 401 and inspect how Kconfig selects the JH7110 toolchain. Trace the existing board toolchain configuration and determine how custom LLVM/Clang executables are expected to be selected instead of riscv64-unknown-elf-gcc. Done means the board can use CMake with the requested Clang toolchain without requiring repeated GCC builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake
Domain
build-system, embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.