Abhishekmishra2808 commented on code in PR #18396:
URL: https://github.com/apache/nuttx/pull/18396#discussion_r2885681384


##########
boards/risc-v/esp32c3-legacy/esp32c3-legacy-devkit/src/Make.defs:
##########
@@ -46,7 +46,7 @@ endif
 
 ifeq ($(CONFIG_ETC_ROMFS),y)
   RCSRCS = etc/init.d/rc.sysinit etc/init.d/rcS
-  RCRAWS = etc/group etc/passwd
+  RCRAWS = etc/group

Review Comment:
   Yes the `/etc/passwd` file is now generated during the build by `mkpasswd`.
   Previously it was included statically via `RCRAWS = etc/group etc/passwd`. 
With this change I removed the static `etc/passwd` entry so that it is not 
embedded in the source tree anymore.
   
   During the build, when `CONFIG_ETC_ROMFS_GENPASSWD=y`, the `mkpasswd` host 
tool is executed from `boards/Board.mk`. It generates the passwd entry using 
the configured values (`CONFIG_ETC_ROMFS_PASSWD_*`) and writes it into the 
temporary ROMFS staging directory (`etctmp/etc/passwd`). That file is then 
picked up when the ROMFS image (`etctmp.c`) is generated.
   
   So `/etc/passwd` is still included in the ROMFS, but it is now produced 
dynamically at build time instead of being a static file in `RCRAWS`.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to