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

cmake:init RISC-V cmake qemu-rv build #11031

Merged
merged 3 commits into from Oct 26, 2023

Conversation

xuxin930
Copy link
Contributor

@xuxin930 xuxin930 commented Oct 25, 2023

Summary

  1. init RISC-V cmake build
  2. enable rv32 smp rv64 smp ci cmake build

cmake currently does not support non-FlatBuild,
need disable ELF and LOADABLE when compiling other defconfigs

Impact

risc-v arch

Testing

# From within nuttx/. Configure:

$ cmake -B build -DBOARD_CONFIG=rv-virt/smp64  -GNinja  # for rv32:rv-virt/smp

# this uses ninja generator (install with sudo apt install ninja-build). 
# To build:

$ cmake --build build

# menuconfig:

$ cmake --build build -t menuconfig

cmake currently does not support non-FlatBuild,
need disable ELF and LOADABLE when compiling other defconfigs

```
 cmake -B build -DBOARD_CONFIG=rv-virt/smp64 -GNinja # for rv32:rv-virt/smp
 cmake --build build -t menuconfig
 cmake --build build
 qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -smp 8 -bios none -kernel nuttx -nographic
```

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
@xuxin930 xuxin930 changed the title [WIP]cmake:init RISC-V cmake qemu-rv build cmake:init RISC-V cmake qemu-rv build Oct 25, 2023
@xuxin930 xuxin930 marked this pull request as ready for review October 25, 2023 12:23
@acassis
Copy link
Contributor

acassis commented Oct 25, 2023

@xuxin930 please verify/decript the CI error

this fixes the error opcode `fence.i` by cmake compilation

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
@xuxin930
Copy link
Contributor Author

@xuxin930 please verify/decript the CI error

Fixed

@xiaoxiang781216 xiaoxiang781216 merged commit 9112b9e into apache:master Oct 26, 2023
26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.4.0 Dec 27, 2023
@jerpelea jerpelea moved this from To-Add to processed in Release Notes - 12.4.0 Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants