incubator-nuttx/syscall
Yanfeng Liu ea8682572c build/cmake: add initial KERNEL mode support
Currently only FLAT mode development can enjoy cmake build system. This
patch tries to add initial kernel mode support. It can build NuttX kernel
and libproxies.a, the latter will be further checked though.

This can already help to build an AMP remote node image as it can share
userland apps living in the AMP master node.

Major changes:

- in top folder:
  - CMakeLists.txt    adjust for KERNEL mode, separate from PROTECTED mode.
- in `syscall`:
  - CMakeLists.txt    add mksyscall target for stubs/proxies generation
- in `syscall/stubs`:
  - CMakeLists.txt    use dependency to mksyscall
- in `syscall/proxies`:
  - CMakeLists.txt    use dependency to mksyscall
- in `arch`:
  - CMakeLists.txt    separate KERNEL from PROTECTED mode.
- in `arch/risc-v/src`:
  - CMakeLists.txt    separate from PROTECTED mode, add sub folders.
- in `arch/risc-v/common`:
  - CMakeLists.txt    add sources and sub-folders for KERNEL mode.
- in `arch/risc-v/k230`:
  - CMakeLists.txt    add sources for KERNEL mode.
- in `boards/risc-v/k230/canmv230/src`:
  - CMakeLists.txt    adjust k230 specific scripts for kernel mode.

New additions:

- in `arch/risc-v/src/nuttsbi/`           add CMakeLists.txt
- in `arch/risc-v/src/common/supervisor/` add CMakeLists.txt

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
2024-03-15 16:21:23 +08:00
..
proxies build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
stubs build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
wraps build: add initial cmake build system 2023-07-08 13:50:48 +08:00
.gitignore syscal: Remove .context form .gitignore 2022-03-02 10:42:05 +01:00
CMakeLists.txt build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
Kconfig arch: Remove SYS_RESERVED from Kconfg 2022-02-27 22:54:13 +08:00
Makefile syscall: Fix Makefile:69: target 'syscall_names.o' given more than once in the same rule 2022-04-04 08:44:50 +02:00
syscall.csv sched/semaphore: Move named semaphores to user space 2023-11-27 04:52:54 -08:00
syscall_names.c Create wrapper library for system call instrumentation 2020-07-22 12:01:40 -05:00
syscall_stublookup.c syscall: Generate STUB prototype automatically 2020-05-07 10:31:05 -06:00
syscall_wraps.h Create wrapper library for system call instrumentation 2020-07-22 12:01:40 -05:00