apache / apache/nuttx

cmake/rv-virt: lacking support for `NSH_SYMTAB` and `ALLSYMS`

Open
#11,304 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

For the `rv-virt:nsh` target, make approach works well, but CMake build leads to undefined symbols for `g_symtab` etc. It seems that `defconfig` has `CONFIG_ALLSYMS` off and `CONFIG_NSH_SYMTAB` on.

Further tests show that:

- When `CONFIG_NSH_SYMTAB` is on and `CONFIG_ALLSYMS` is off, Make build works but CMake fails.
- When both `CONFIG_NSH_SYMTAB` and `CONFIG_ALLSYMS` are off, CMake build works.
- When both `CONFIG_NSH_SYMTAB` and `CONFIG_ALLSYMS` are on, Makefile build works out a larger binary but CMake build leads to undefined `g_symtab` etc.

Is this issue in current CMake system or something else?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.