]> rtime.felk.cvut.cz Git - omk.git/commitdiff
NuttX: the adapt to new implementation of ROMFS mounting at /etc master
authorPavel Pisa <ppisa@pikron.com>
Wed, 10 Jan 2024 18:52:12 +0000 (19:52 +0100)
committerPavel Pisa <ppisa@pikron.com>
Wed, 10 Jan 2024 18:52:12 +0000 (19:52 +0100)
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>
snippets/nuttx-compile.omk

index 1539adb4126ba8daa3aebdcf39b6d31f3f4be25a..3acc85e0cd982765132769e12298923fa6486eb8 100644 (file)
@@ -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 \