From: Pavel Pisa Date: Wed, 10 Jan 2024 18:52:12 +0000 (+0100) Subject: NuttX: the adapt to new implementation of ROMFS mounting at /etc X-Git-Url: http://rtime.felk.cvut.cz/gitweb/omk.git/commitdiff_plain/40a9d523fd7eac29b5a7c7e875135e5ab4d4ea6a NuttX: the adapt to new implementation of ROMFS mounting at /etc The option CONFIG_NSH_ROMFSETC has been replaced by CONFIG_ETC_ROMFS and file system is mounted during system initialization (sched/init/nx_bringup.c) instead of application and NSH (nshlib/nsh_romfsetc.c). The adapted OMK wrap-up code can be found in https://github.com/ppisa/nuttx-devel/tree/master/nuttx-omk-template/wrapup It allows to wrap set of applications and define common filesystem content in the final single binary including even NuttX kernel. Signed-off-by: Pavel Pisa --- diff --git a/snippets/nuttx-compile.omk b/snippets/nuttx-compile.omk index 1539adb..3acc85e 100644 --- a/snippets/nuttx-compile.omk +++ b/snippets/nuttx-compile.omk @@ -410,6 +410,7 @@ $(2)$$(OBJ_EXT): $(2) @$(QUIET_CMD_ECHO) " ROMFS $$@" $(Q) $(LD_RAW) -r --accept-unknown-input-arch -b binary \ $$(filter -m%,$$(LDFLAGS:$$(CC_LD_OPTION)%=%)) \ + --defsym=$(2)=_binary_$(2)_start \ --defsym=$(2)_size=_binary_$(2)_size \ --defsym=$(2)_start=_binary_$(2)_start \ --defsym=$(2)_end=_binary_$(2)_end \