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 <ppisa@pikron.com>
@$(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 \