cederom commented on code in PR #18396:
URL: https://github.com/apache/nuttx/pull/18396#discussion_r2809866832
##########
boards/Board.mk:
##########
@@ -35,6 +35,19 @@ $(ETCSRC): $(foreach raw,$(RCRAWS), $(if $(wildcard
$(BOARD_DIR)$(DELIM)src$(DEL
$(shell rm -rf $(ETCDIR)$(DELIM)$(raw)) \
$(shell mkdir -p $(dir $(ETCDIR)$(DELIM)$(raw))) \
$(shell cp -rfp $(if $(wildcard
$(BOARD_DIR)$(DELIM)src$(DELIM)$(raw)), $(BOARD_DIR)$(DELIM)src$(DELIM)$(raw),
$(if $(wildcard $(BOARD_COMMON_DIR)$(DELIM)$(raw)),
$(BOARD_COMMON_DIR)$(DELIM)$(raw), $(BOARD_DIR)$(DELIM)src$(DELIM)$(raw)))
$(ETCDIR)$(DELIM)$(raw)))
+ifeq ($(CONFIG_ETC_ROMFS_GENPASSWD),y)
+ifeq ($(CONFIG_ETC_ROMFS_PASSWD_PASSWORD),)
+ $(error CONFIG_ETC_ROMFS_PASSWD_PASSWORD must be set when
ETC_ROMFS_GENPASSWD is enabled. Run 'make menuconfig' to set a password.)
+endif
+ $(Q) mkdir -p $(ETCDIR)$(DELIM)$(CONFIG_ETC_ROMFSMOUNTPT)
+ $(Q) python3 $(TOPDIR)$(DELIM)tools$(DELIM)mkpasswd.py \
Review Comment:
this introduces python3 as mandatory build component, which may not be
welcome, and it was not necessary, so probably there it another way :-)
--
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]