nuttx/tools
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
..
bl602 Documentation/bl602: Update some imformation; Add partition.toml in tool/bl602 2021-07-27 21:01:15 -07:00
ci sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
cxd56 mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
esp32 xtensa/esp32: Add support for Protected Mode 2022-07-14 14:57:57 +08:00
esp32c3 esp32*: Update nuttx.manifest for nuttx.bin 2022-05-27 13:41:51 +03:00
esp32c6 risc-v/esp32c6: Add ESP32-C6 basic support 2023-02-10 17:38:41 -03:00
esp32s2 esp32*: Update nuttx.manifest for nuttx.bin 2022-05-27 13:41:51 +03:00
esp32s3 esp32s3: Enhance protected build linker scripts and memory layout 2023-08-02 21:38:44 +02:00
espressif arch/espressif: Add MCUboot support for ESP32-C3 2023-08-04 10:30:57 -07:00
gdb tcbinfo:remove total_num form tcbinfo. 2023-11-21 21:52:24 -08:00
licensing Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
lwl Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
mpfs mpfs: Remove the ddrstorage section from the OpenSBI package 2022-08-10 10:01:47 +03:00
pic32 tools: Fix an error of make -C tools -f Makefile.host clean 2022-11-09 13:50:15 +08:00
rp2040 nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
simwifi simwifi: host wlan0 obtains ip and set dns for wlan0 in the defwan wlan0 2023-10-27 22:28:01 +08:00
zds
.gitignore build: add initial cmake build system 2023-07-08 13:50:48 +08:00
b16.c tools/b16.c: Fix usage text 2022-09-13 14:53:42 +08:00
bdf-converter.c
build-globals.sh Fix loading of ET_DYN type of shared objects 2023-09-20 09:35:28 -04:00
callstack.py tools: Add script to parse callstack 2023-06-27 10:10:12 -03:00
cfgdefine.c tools/cfgdefine.c: Resolve compile warning array subscript has type ‘char’ 2023-10-26 00:10:57 +08:00
cfgdefine.h
cfgparser.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
cfgparser.h
checkpatch.sh tools: checkpach supports python files 2023-09-12 16:25:45 +08:00
checkrelease.sh Remove incubat.* from the code base 2022-12-13 21:21:27 +02:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
cmpconfig.c
cnvwindeps.c
Config.mk tool/Config.mk:use bash with or without verbosity enabled 2023-12-21 03:45:52 -08:00
configure_completion.bash tools: Add a bash completion script for the configure tool 2021-05-15 08:37:39 -03:00
configure.bat Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
configure.c tools/Unix.mk:Security Checks and Windows Native Compilation Enhancements 2023-12-04 07:07:08 -08:00
configure.sh sh:Enhanced compilation system 2023-12-04 07:07:08 -08:00
convert-comments.c
copydir.bat
copydir.sh
coredump.py tools/coredump: add coredump python parser 2023-05-25 20:42:04 +08:00
csvparser.c
csvparser.h
define.bat tools/define.bat: sync design of define.bat with define.sh to uniform usage 2022-12-03 19:22:17 +08:00
define.sh
detab.c
Directories.mk libc: Move math library from libs/libc/math to libs/libm/libm 2023-02-23 10:40:07 +02:00
discover.py Updated python scripts interpreter invocation in tools/. 2023-02-19 14:15:27 +08:00
Export.mk tools/export: Add LDELFFLAGS to mkexport.sh. 2023-03-24 15:02:59 -03:00
flash_writer.py
FlatLibs.mk libc: Move math library from libs/libc/math to libs/libm/libm 2023-02-23 10:40:07 +02:00
gcov.sh tool: add code coverage tool 2021-10-29 19:21:23 +02:00
gencromfs.c Fixes in asprintf usage. 2023-04-19 02:48:39 +08:00
ide_exporter.py Updated python scripts interpreter invocation in tools/. 2023-02-19 14:15:27 +08:00
incdir.bat tools/incdir.bat 2022-11-09 01:38:12 +08:00
incdir.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
incdir.sh
indent.sh
initialconfig.c tools: Fix warnings and replace deprecated readdir_r() 2022-06-24 11:42:41 +08:00
jlink-nuttx.c tcbinfo:remove total_num form tcbinfo. 2023-11-21 21:52:24 -08:00
kconfig2html.c Update kconfig2html.c 2023-12-14 20:02:52 -08:00
kconfig.bat
KernelLibs.mk libc: Move math library from libs/libc/math to libs/libm/libm 2023-02-23 10:40:07 +02:00
LibTargets.mk libc: Move math library from libs/libc/math to libs/libm/libm 2023-02-23 10:40:07 +02:00
link.bat
link.sh tools/link.sh: fix an incorrect variable 2024-01-08 19:46:59 -03:00
lowhex.c
macar-qcs.sh change Mac sim archive operate from replace to quick insertion 2023-09-12 16:15:19 +03:00
Makefile.host Added -fPIC option when building jlink-nuttx.so. 2022-06-29 13:16:54 +03:00
merge_config.py tools: add support for merge_config 2023-09-14 14:33:30 +08:00
minidumpserver.py tools/minudumpserver: support auto start GDB and execute some commands 2023-09-23 15:19:20 +08:00
mkallsyms.py libs: fix the problem that the address obtained in thumb mode cannot be executed. 2024-01-04 09:22:57 -08:00
mkallsyms.sh Revert "tools/mkallsyms.sh: Disable the mismatch warning of builtin declaration" 2022-05-12 22:19:52 +08:00
mkconfig.c tools/mkconfig: Remove the unnecessary config option correction 2022-02-09 14:34:38 -03:00
mkconfigvars.sh
mkctags.sh tools: update licenses to Apache 2021-09-02 21:56:05 +08:00
mkdeps.c tools/mkdeps: increase MAX_BUFFER/MAX_EXPAND/MAX_SHQUOTE to 16384 2023-09-09 00:47:59 +08:00
mkexport.sh tools/mkexport: copy full library directly if library without path 2023-09-08 22:52:35 +08:00
mkfsdata.pl
mknulldeps.sh
mkromfsimg.sh sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
mksymtab.c tools/mksymtab: Fix a compilation warning 2023-04-23 12:22:19 +08:00
mksyscall.c tools/syscall: Resolve compile time warning on address validation. 2023-06-28 08:47:07 +08:00
mkversion.c
mkwindeps.sh
netusb.sh script: support IPv6 in simhostroute.sh 2023-01-05 23:36:43 +08:00
noteinfo.c
nxstyle.c Update kconfig2html.c 2023-12-14 20:02:52 -08:00
parsecallstack.py Updated python scripts interpreter invocation in tools/. 2023-02-19 14:15:27 +08:00
parsememdump.py parsememdump.py: support the sequence number parse 2023-09-23 15:13:00 +08:00
parsetrace.py tools/prasetrace: remvoe function name filter 2023-09-08 15:37:55 +03:00
pre-commit tools: add git pre-commit hook based on checkpatch.sh 2023-05-03 14:42:34 +02:00
process_config.sh tools: defconfig supports the include command 2023-09-14 14:33:30 +08:00
ProtectedLibs.mk libc: Move math library from libs/libc/math to libs/libm/libm 2023-02-23 10:40:07 +02:00
refresh.sh sh:Enhanced compilation system 2023-12-04 07:07:08 -08:00
rmcr.c
Rust.defs tools: Move Rust relative settings to Rust.defs 2023-04-01 16:45:11 +03:00
sethost.sh Add CONFIG_EXPERIMENTAL for configure windows native 2023-10-31 09:03:02 +08:00
showsize.sh tools: update licenses to Apache 2021-05-27 08:07:25 +09:00
showstack.sh tools/showstack: add configurable rank parameters 2023-09-12 16:23:20 +08:00
simbridge.sh
simhostroute.sh script: support IPv6 in simhostroute.sh 2023-01-05 23:36:43 +08:00
size_report.py fix: TreeNode has same attribute with NodeMixin 2023-10-09 17:51:01 -04:00
stm32_pinmap_tool.py tools:Add STM32 Pin migration tool 2023-04-19 09:58:11 +02:00
testbuild.sh tools/testbuild: restore the original toolchain configuration before refresh 2023-07-20 09:09:32 +02:00
toolchain.cmake.export Do not let CMake check the compiler with en executable as the entry point is not always main() 2023-09-12 01:17:30 +08:00
uncrustify.cfg Remove the double blank line from source files 2022-02-20 20:10:14 +01:00
Unix.mk tools/Unix.mk:change incdir to a Make target 2023-12-28 10:56:01 -08:00
unlink.bat
unlink.sh
version.sh tools/version: generate dummy version without breakout 2023-01-28 12:10:15 -03:00
Win.mk tools/Unix.mk:change incdir to a Make target 2023-12-28 10:56:01 -08:00
xmlrpc_test.py Updated python scripts interpreter invocation in tools/. 2023-02-19 14:15:27 +08:00
Zig.defs tools/Zig: Simplify compile flags handling 2023-03-31 16:55:15 -03:00
zipme.sh tools: zipme: remove incubator from releases 2022-12-13 17:19:06 +08:00