nuttx/include/nuttx
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
..
1wire
analog channel gain switching in aefc by ioctl 2023-10-16 21:55:40 +08:00
audio audio: add amr format support 2023-10-25 13:33:21 +08:00
binfmt coredump: support coredump save to block device when crash 2023-12-10 07:02:03 -08:00
can Add new ioctls 2023-10-27 13:52:28 -03:00
clk clk:fix some issues when use rpmsg clk 2023-09-22 08:47:23 +08:00
contactless
crypto Added NXP SE05x support (secure element) 2023-09-09 15:54:08 +08:00
dma dma: support source/destination address auto step 2023-09-27 00:47:02 +08:00
drivers driver/tee: add optee client driver module 2023-11-23 06:25:48 -08:00
eeprom Add MTD for AT25 eeprom 2024-01-04 09:25:52 -08:00
efuse
fs make 64-bit time_t back to unsigned 2023-12-30 08:48:43 -08:00
himem xtensa/esp32s3: Add SPIRAM high memory support 2023-11-29 06:33:51 -08:00
hwspinlock
i2c
input input/touchscreen: Bring up TSIOC_[SET|GET]CALIB macro 2023-09-20 20:51:38 +08:00
ioexpander drivers/ioexpander: Add const to the value array of multiwritepin 2023-09-28 10:09:51 +08:00
lcd sim_lcd: add open & close 2023-12-18 09:06:29 -08:00
leds drivers/leds/ws2812: Fix WS2812 pixel size 2023-12-24 16:38:06 -08:00
lib libs/log2ceil: Move implementation of log2ceil to a common place 2023-12-14 08:46:12 -08:00
math math/mpi: add mpi driver in math 2023-10-17 13:43:43 +08:00
mbox
mm drivers/rmt: Implement an upper-half RMT character driver 2023-12-24 16:38:06 -08:00
modem
motor drivers/foc: add support for drv8301 power-stage driver 2023-11-18 17:07:20 -08:00
mtd Add MTD for AT25 eeprom 2024-01-04 09:25:52 -08:00
net net/route: Support longest prefix match for routing 2024-01-09 05:58:10 -08:00
note note: remove remaining event code 2023-10-17 09:07:06 +08:00
nx
power support pm runtime base function 2023-09-16 14:44:08 +08:00
rc
regmap nuttx/drivers: add regmap subsystems support. 2023-09-27 00:46:51 +08:00
reset Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
rf
rmt drivers/rmt: Implement an upper-half RMT character driver 2023-12-24 16:38:06 -08:00
rptun rptun ping: support data checksum and data transfer rate calculation 2024-01-09 06:06:40 -08:00
segger c++ compatibility: rename reserved c++ keywords 'public' and 'this' 2023-09-16 19:45:02 +08:00
sensors Fix nuttx coding style 2023-12-13 17:29:08 +01:00
serial support gdbstub use serial. 2023-12-11 08:43:26 -08:00
spi
syslog
timers
usb usbdev: Add callback for CONFIG_USBDEV_SOFINTERRUPT 2023-12-08 21:27:36 -03:00
usrsock
video drivers/goldfish_fb: optimize goldfish fb register 2023-12-18 09:08:32 -08:00
virtio virtio.h: add virtio_has_feature api for virtio driver 2023-12-10 21:54:56 -08:00
wireless Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
.gitignore
addrenv.h
allsyms.h
arch.h arch/arm:add up_debugpoint api 2023-12-11 08:43:26 -08:00
ascii.h
atexit.h
bits.h Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
board.h
cache.h
can.h
cancelpt.h task/pthread_cancelpt: Move cancel point handling to libc, data to TLS 2023-11-15 08:52:04 -08:00
clock.h clock.h: use CONFIG_DEBUG_SCHED to test init ticks 2023-11-21 04:01:39 -08:00
compiler.h sched/procfs:use instrument to statistics run time max stack 2023-12-11 02:06:51 -08:00
crc8.h
crc16.h
crc32.h
crc64.h
elf.h riscv/arch_elf.c: Handle PCREL_HI20/LO12_I/S relocations correctly 2023-12-12 17:32:36 -08:00
environ.h
envpath.h
ethtool.h Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
fdcheck.h
fdt.h
gdbstub.h support gdbstub use serial. 2023-12-11 08:43:26 -08:00
hashtable.h
init.h
instrument.h libc: add instrument api support 2023-12-11 02:06:51 -08:00
ipcc.h
irq.h arch:Mark key functions to prohibit instrumentation to prevent recursive calls 2023-12-11 02:06:51 -08:00
kmalloc.h
kthread.h
lirc.h
list.h list: search prev item in reverse order 2023-11-21 07:59:42 -08:00
memoryregion.h coredump: support coredump save to block device when crash 2023-12-10 07:02:03 -08:00
mmcsd.h Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
module.h
mqueue.h
mutex.h
notifier.h notifier: add BLOCKING_INIT_NOTIFIER_HEAD support 2023-09-19 09:32:17 +08:00
nuttx.h sched: move etc romfs mount from nsh to sched/init 2024-01-09 21:29:46 -03:00
page.h PAGESIZE and PAGEMASK seems as common macro 2023-09-10 18:18:15 +08:00
panic_notifier.h
pgalloc.h
progmem.h
pthread.h
queue.h queue.h: Implement double link list queue split 2023-09-12 22:09:00 +08:00
random.h
reboot_notifier.h
rwsem.h misc/rwlock:Implementing read/write locks. 2023-12-02 19:43:19 -08:00
sched.h sched/procfs:use instrument to statistics run time max stack 2023-12-11 02:06:51 -08:00
sched_note.h note: delete sched_note_flatten 2023-11-12 23:52:10 -08:00
scsi.h
sdio.h
sdio_slave.h
semaphore.h semaphore/_SEM_XX: Remove the _SEM redirection macros as unnecessary 2023-11-27 04:52:54 -08:00
signal.h style: fix multiple style issues and remove unused 2023-09-16 14:17:47 +08:00
spawn.h sched/taskfiles: skip unnecessary file open/close operations to improve performance 2023-11-16 07:30:36 -08:00
spinlock.h spinlock: Move the inclusion of stdatomic.h to source file 2023-11-19 20:22:50 +01:00
streams.h libc/stream: add file out stream 2023-12-25 16:54:16 -03:00
symtab.h
tee.h Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
tls.h task/pthread_cancelpt: Fix task_delete from another task group 2023-11-22 08:05:58 -08:00
trace.h
userspace.h
vt100.h
wdog.h
wqueue.h wqueue: add work_cancel_sync() support 2023-09-19 15:52:48 +08:00
zoneinfo.h