1
0
Fork 0
forked from nuttx/nuttx-update
Local Read-Write Fork of Apache NuttX RTOS
Find a file
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
.github ci: Remove the codecheck from build.yml 2024-02-29 18:54:41 -03:00
arch build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
audio Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
binfmt binfmt/loadmodule: replace kmm_free() to lib_free() 2024-03-14 01:00:25 -04:00
boards build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
cmake cmake:enable libxx for CMake build 2024-03-15 01:28:53 +08:00
crypto sched: explicitly select the cpuload clock source configuration 2023-11-01 09:27:56 +08:00
Documentation arch/esp32 add openeth mac driver 2024-03-12 08:31:06 -03:00
drivers sensors/bmi270: fix accel and gyro data position 2024-03-14 21:16:46 -03:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs fs/driver: using nx_unlink to call unlink ops to release some resource 2024-03-14 11:53:30 +08:00
graphics poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
include sensors/bmi270: fix accel and gyro data position 2024-03-14 21:16:46 -03:00
libs cmake:enable libxx for CMake build 2024-03-15 01:28:53 +08:00
mm mm: Using Macros Instead of Memory to Fill Labels 2024-03-14 22:48:19 +08:00
net net/tcp: return true only when send window updates 2024-03-13 22:24:04 +08:00
openamp openamp: Fix void pointer arithmetic in openamp to remove compilation warnings 2024-02-12 17:06:33 +01:00
pass1 passl: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sched sched/signal: move unblock signal info to stack 2024-03-15 01:10:55 +08:00
syscall build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
tools libcxxabi: Path <cxxabi.h> not found 2024-03-14 22:47:55 +08:00
video build: add initial cmake build system 2023-07-08 13:50:48 +08:00
wireless Remove the back slash from long literal string 2024-02-19 16:43:15 +01:00
.asf.yaml feat: add a GitHub action to lint the YAML files 2020-12-15 09:52:04 -06:00
.gitignore fs/vfat: Fix typo in the macro DIRSEC_BYTENDX 2024-02-03 12:46:08 -03:00
.yamllint feat: add a GitHub action to lint the YAML files 2020-12-15 09:52:04 -06:00
AUTHORS AUTHORS: add Tomek CEDRO to the list 2023-03-07 14:15:55 +01:00
CMakeLists.txt build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
CONTRIBUTING.md Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
INVIOLABLES.md INVIOLABLES.md: Fix a simple alignment and change occurrences of Nuttx 2020-09-03 01:33:05 +08:00
Kconfig rpmsg/debug: add debug configs and macros 2024-02-15 19:53:55 -08:00
LICENSE api: add simple hashtable api 2024-02-21 13:29:36 -03:00
Makefile tools:fix some error use of shell command in Windows native build 2022-11-06 16:41:49 +08:00
NOTICE Remove the double blank line from source files 2022-02-20 20:10:14 +01:00
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes Documentation: move ReleaseNotes 2023-09-26 20:41:00 +08:00

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.