nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [incubator-nuttx] xiaoxiang781216 edited a comment on issue #793: boards/ use genromfs to make romfs image
Date Wed, 15 Apr 2020 08:41:40 GMT
xiaoxiang781216 edited a comment on issue #793: boards/ use genromfs to make romfs
   > is this an alternative to NSH_CUSTOMROMFS?
   RCSRCS/RCRAWS isn't an alternative which is designed to work with NSH_ROMFSETC/NSH_ARCHROMFS/NSH_CUSTOMROMFS.
In the old workflow, if user enable NSH_ROMFSETC, he/she need prepare nsh_romfsimg.h by self
or utilize this approach is only suitable for demo purpose). In the new workflow,
user just need:
   1.Enable NSH_ROMFSETC
   2.Append script files into RCSRCS
   2.Append binary files to RCRAWS
   Then the build system will automatically generate romfs.img and convert to header file
for you.
   > how is a user supposed to specify RCSRCS and RCRAWS?
   Here is a demo boards/arm/chip/board/src/Makefile
   RCSRCS := rcS
   VPATH += :etc/init.d
   DEPPATH += --dep-path etc/init.d
   include $(TOPDIR)/boards/
   And boards/arm/chip/board/src/etc/init.d/rcS
   #include <nuttx/config.h>
   mount -t tmpfs CONFIG_LIBC_TMPDIR
   uname -a > /dev/syslog
   Of course, user could add more script or config files to RCSRCS/RCRAWS, the only between
RCSRCS and RCRAWS is that RCSRCS will go through C preprocessor but RCRAWS not.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message