nuttx/boards/arm/lpc17xx_40xx/lx_cpu/configs/nsh/defconfig
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

171 lines
4.2 KiB
Plaintext

#
# This file is autogenerated: PLEASE DO NOT EDIT IT.
#
# You can use "make menuconfig" to make any modifications to the installed .config file.
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
# modifications.
#
# CONFIG_EXAMPLES_ELF_FSMOUNT is not set
# CONFIG_NSH_DISABLE_SHUTDOWN is not set
# CONFIG_SPI_EXCHANGE is not set
CONFIG_ALLOW_BSD_COMPONENTS=y
CONFIG_ARCH="arm"
CONFIG_ARCH_BOARD="lx_cpu"
CONFIG_ARCH_BOARD_LX_CPU=y
CONFIG_ARCH_CHIP="lpc17xx_40xx"
CONFIG_ARCH_CHIP_LPC17XX_40XX=y
CONFIG_ARCH_CHIP_LPC4088=y
CONFIG_ARCH_HIPRI_INTERRUPT=y
CONFIG_ARCH_INTERRUPTSTACK=4096
CONFIG_ARCH_RAMVECTORS=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARDCTL_APP_SYMTAB=y
CONFIG_BOARDCTL_RESET=y
CONFIG_BOARDCTL_ROMDISK=y
CONFIG_BOARD_LOOPSPERMSEC=11934
CONFIG_BOOT_RUNFROMSDRAM=y
CONFIG_BUILTIN=y
CONFIG_CAN=y
CONFIG_CANCELLATION_POINTS=y
CONFIG_CANUTILS_CANLIB=y
CONFIG_CAN_EXTID=y
CONFIG_CDCACM=y
CONFIG_CDCACM_COMPOSITE=y
CONFIG_CDCACM_IFLOWCONTROL=y
CONFIG_CDCECM_COMPOSITE=y
CONFIG_DEV_LOOP=y
CONFIG_DEV_ZERO=y
CONFIG_DFU=y
CONFIG_ELF=y
CONFIG_ELF_ALIGN_LOG2=3
CONFIG_ELF_BUFFERSIZE=128
CONFIG_ETH0_PHY_DP83848C=y
CONFIG_ETH1_PHY_DP83848C=y
CONFIG_EXAMPLES_CAN=y
CONFIG_EXAMPLES_ELF=y
CONFIG_EXAMPLES_ELF_EXTERN=y
CONFIG_EXAMPLES_HELLO=y
CONFIG_EXAMPLES_MODULE=y
CONFIG_EXAMPLES_MODULE_DEVMINOR=1
CONFIG_EXAMPLES_MODULE_DEVPATH="/dev/ram1"
CONFIG_EXAMPLES_ROMFS=y
CONFIG_EXECFUNCS_HAVE_SYMTAB=y
CONFIG_EXECFUNCS_SYSTEM_SYMTAB=y
CONFIG_FAT_LCNAMES=y
CONFIG_FAT_LFN=y
CONFIG_FS_BINFS=y
CONFIG_FS_FAT=y
CONFIG_FS_NAMED_SEMAPHORES=y
CONFIG_FS_PROCFS=y
CONFIG_FS_PROCFS_REGISTER=y
CONFIG_FS_ROMFS=y
CONFIG_FS_TMPFS=y
CONFIG_FS_UNIONFS=y
CONFIG_I2C=y
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_INIT_STACKSIZE=4096
CONFIG_INTELHEX_BINARY=y
CONFIG_LIBC_DLFCN=y
CONFIG_LIBC_ENVPATH=y
CONFIG_LIBC_STRERROR=y
CONFIG_LPC17_40_CAN2=y
CONFIG_LPC17_40_CAN2_BAUD=1000000
CONFIG_LPC17_40_CAN2_DIVISOR=2
CONFIG_LPC17_40_CAN_SAM=y
CONFIG_LPC17_40_CAN_TSEG2=5
CONFIG_LPC17_40_EEPROM=y
CONFIG_LPC17_40_ETHERNET=y
CONFIG_LPC17_40_ETH_HASH=y
CONFIG_LPC17_40_ETH_NRXDESC=10
CONFIG_LPC17_40_ETH_NTXDESC=10
CONFIG_LPC17_40_EXTDRAM=y
CONFIG_LPC17_40_EXTDRAMSIZE=33554432
CONFIG_LPC17_40_FLASH=y
CONFIG_LPC17_40_GPDMA=y
CONFIG_LPC17_40_MULTICAST=y
CONFIG_LPC17_40_PHY_AUTONEG=y
CONFIG_LPC17_40_SDCARD=y
CONFIG_LPC17_40_SDRAM_32BIT=y
CONFIG_LPC17_40_SSP0=y
CONFIG_LPC17_40_SSP1=y
CONFIG_LPC17_40_UART0=y
CONFIG_LPC17_40_USBDEV=y
CONFIG_LPC17_40_USBHOST=y
CONFIG_M25P_SUBSECTOR_ERASE=y
CONFIG_MMCSD=y
CONFIG_MMCSD_SDIO=y
CONFIG_MM_REGIONS=3
CONFIG_MTD=y
CONFIG_MTD_M25P=y
CONFIG_NETDB_DNSCLIENT=y
CONFIG_NETDB_DNSSERVER_NOADDR=y
CONFIG_NETDEV_PHY_IOCTL=y
CONFIG_NETINIT_DHCPC=y
CONFIG_NETINIT_NOMAC=y
CONFIG_NETUTILS_FTPC=y
CONFIG_NETUTILS_TELNETD=y
CONFIG_NETUTILS_TFTPC=y
CONFIG_NETUTILS_WEBCLIENT=y
CONFIG_NET_BROADCAST=y
CONFIG_NET_CDCECM=y
CONFIG_NET_ICMP=y
CONFIG_NET_ICMP_SOCKET=y
CONFIG_NET_LOOPBACK=y
CONFIG_NET_PKT=y
CONFIG_NET_ROUTE=y
CONFIG_NET_SOLINGER=y
CONFIG_NET_TCP=y
CONFIG_NET_TCPBACKLOG=y
CONFIG_NET_TCP_KEEPALIVE=y
CONFIG_NET_TCP_WRITE_BUFFERS=y
CONFIG_NET_UDP=y
CONFIG_NET_UDP_CHECKSUMS=y
CONFIG_NFS=y
CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_BUILTIN_APPS=y
CONFIG_NSH_FILEIOSIZE=512
CONFIG_NSH_FILE_APPS=y
CONFIG_NSH_READLINE=y
CONFIG_NXFLAT=y
CONFIG_PREALLOC_TIMERS=4
CONFIG_PRIORITY_INHERITANCE=y
CONFIG_PSEUDOTERM=y
CONFIG_PTABLE_PARTITION=y
CONFIG_PTHREAD_CLEANUP_STACKSIZE=1
CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT=y
CONFIG_PTHREAD_MUTEX_TYPES=y
CONFIG_PTHREAD_STACK_MIN=1024
CONFIG_RAM_SIZE=65536
CONFIG_RAM_START=0x10000000
CONFIG_RR_INTERVAL=200
CONFIG_SCHED_CPULOAD_SYSCLK=y
CONFIG_SCHED_HPWORK=y
CONFIG_SCHED_HPWORKPRIORITY=192
CONFIG_SCHED_IRQMONITOR=y
CONFIG_SERIAL_TERMIOS=y
CONFIG_START_DAY=4
CONFIG_START_MONTH=3
CONFIG_START_YEAR=2013
CONFIG_SYMTAB_ORDEREDBYNAME=y
CONFIG_SYSTEM_CDCACM=y
CONFIG_SYSTEM_DHCPC_RENEW=y
CONFIG_SYSTEM_I2CTOOL=y
CONFIG_SYSTEM_MDIO=y
CONFIG_SYSTEM_NETDB=y
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_NSH_STACKSIZE=4096
CONFIG_SYSTEM_NTPC=y
CONFIG_SYSTEM_NTPC_STACKSIZE=4096
CONFIG_SYSTEM_PING=y
CONFIG_SYSTEM_POPEN=y
CONFIG_SYSTEM_POPEN_STACKSIZE=4096
CONFIG_SYSTEM_SETLOGMASK=y
CONFIG_SYSTEM_SYSTEM=y
CONFIG_SYSTEM_TEE=y
CONFIG_SYSTEM_TELNET_CLIENT=y
CONFIG_TESTING_RAMTEST=y
CONFIG_TLS_NELEM=4
CONFIG_UART0_SERIAL_CONSOLE=y
CONFIG_USBDEV_COMPOSITE=y
CONFIG_USBHOST_COMPOSITE=y