nuttx/arch
fangxinyong c479ccb8aa sched: move etc romfs mount from nsh to sched/init
Usually the startup script is placed under /etc. The contents of the etc directory
are compiled and linked with Nuttx binary in the form of romfs. After startup,
it will be  mounted by Nsh.

etc is generated by the different boards, that use genromfs and xxd tools to generate
and compile it into the Nuttx, for example: boards/arm/at32/at32f437-mini/tool/mkromfs.sh
The more common method is etc image generated from the content in the corresponding
board/arch/board/board/src/etc directory, and added by Makefile for example:
boards/sim/sim/sim/src/etc.

But in kernel/protected mode, Nuttx kernel and apps are run in different privileged/
non-privileged mode or the isolated binarys, so as that nsh should use syscall to
access Nuttx kernel by exported API. In this scenario, nsh can not mount the etc image
content, because that is generated in board and as a part of Nuttx kernel.

changes:

- move etc romfs mount from nsh to Nuttx, but keep the script to parse and execute.
- move and rename the related CONFIG, move customized nsh_romfsimg.h to etc_romfs.c
  in boards, and no need declaration for romfs_img/romfs_img_len.

This commit changes and updates all configurations in Nuttx arch/board as much as possible,
but if any missing, please refer to the following simple guide:

- rename CONFIG_NSH_ROMFSETC to CONFIG_ETC_ROMFS, and delete CONFIG_NSH_ARCHROMFS in defconfig
- rename the etc romfs mount configs, for example CONFIG_NSH_FATDEVNO to CONFIG_ETC_FATDEVNO
- move customized nsh_romfsimg.h to etc_romfs.c in board/arch/board/board/src and no need
  declaration for romfs_img/romfs_img_len.
- delete default nsh_romfsimg.h, if ROMFSETC is enabled, should generate and compile etc_romfs.c
  in board/arch/board/board/src.

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2024-01-09 21:29:46 -03:00
..
arm Fix mx8mp ecspi interruption management. 2024-01-09 05:48:12 -08:00
arm64 sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
avr arch/dumponexit: unify dump on exit to common code 2023-11-15 08:28:25 -08:00
ceva format: modify spin_lock_irqsave format 2023-10-06 20:00:04 -04:00
dummy
hc arch/dumponexit: unify dump on exit to common code 2023-11-15 08:28:25 -08:00
mips Update kconfig2html.c 2023-12-14 20:02:52 -08:00
misoc netdev/ipv6: Move xxx_ipv6multicast from arch to common code 2023-12-16 05:26:16 -08:00
or1k arch/dumponexit: unify dump on exit to common code 2023-11-15 08:28:25 -08:00
renesas arch/dumponexit: unify dump on exit to common code 2023-11-15 08:28:25 -08:00
risc-v risc-v/canmv230: add PROTECTED build support 2024-01-08 19:46:42 -03:00
sim cmake: fix CONFIG_HAVE_CXXINITIALIZE on macOS 2024-01-06 04:21:52 -08:00
sparc Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
x86 tcbinfo:remove total_num form tcbinfo. 2023-11-21 21:52:24 -08:00
x86_64 tcbinfo:remove total_num form tcbinfo. 2023-11-21 21:52:24 -08:00
xtensa tools: support sorting symbol tables by name 2024-01-04 09:22:57 -08:00
z16 arch/dumponexit: unify dump on exit to common code 2023-11-15 08:28:25 -08:00
z80 arch/dumponexit: unify dump on exit to common code 2023-11-15 08:28:25 -08:00
CMakeLists.txt
Kconfig add missing dependency to MM_KMAP for ARCH_KMAP_VBASE 2023-12-29 17:04:18 -03:00