nuttx/boards/risc-v/k230/canmv230/scripts
Yanfeng Liu 87c9a0ee76 risc-v/k230: add NUTTSBI based kernel build support
Previously k230 kernel build needs OpenSBI wrapping for use on
target, thus leading to larger program and memory overheads.
This patch adds alternative small overhead kernel build support.

Changes:

- in arch/risc-v/src/k230:
  - k230_head.S          entrance renamed for sake of NUTTSBI
  - k230_irq.c           add M-mode handling for NUTTSBI case
  - k230_mm_init.c       add L3 table for smaller RAM case
  - hardware/k230_plic.h add PLIC_CTRL definition
  - Make.defs            use CHIP_ASRCS to fix entrance selection
- in boards/risc-v/canmv230/scripts:
  - Make.defs            add support for NUTTSBI case

Additions:

- in boards/riscv/canmv230/:
  - scripts/ld-nuttsbi.script  link script for NUTTSBI case
  - configs/nsbi/defconfig     config for NUTTSBI case

The artifact nuttx.bin from this configuration can be used directly
on target as OpenSBI wrapping is not needed.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>

fix typo
2024-01-17 10:31:29 -03:00
..
gnu-elf.ld risc-v/canmv230: enable fully linked apps for kernel build 2024-01-10 23:27:46 -03:00
ld-flat.script risc-v/k230: revise CanMV230 kernel build support 2024-01-07 06:40:10 -08:00
ld-kernel.script risc-v/k230: revise CanMV230 kernel build support 2024-01-07 06:40:10 -08:00
ld-nuttsbi.script risc-v/k230: add NUTTSBI based kernel build support 2024-01-17 10:31:29 -03:00
ld-protected.script risc-v/canmv230: add PROTECTED build support 2024-01-08 19:46:42 -03:00
ld-userland.script risc-v/canmv230: add PROTECTED build support 2024-01-08 19:46:42 -03:00
Make.defs risc-v/k230: add NUTTSBI based kernel build support 2024-01-17 10:31:29 -03:00