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


##########
cmake/savedefconfig.cmake:
##########
@@ -72,9 +72,18 @@ list(SORT LINES)
 foreach(LINE IN LISTS LINES)
   decode_brackets(LINE)
   decode_semicolon(LINE)
-  file(APPEND ${OUTPUT_FILE} "${LINE}\n")
+  if(NOT "${LINE}" MATCHES "^CONFIG_FSUTILS_PASSWD_KEY[0-9]"
+     AND NOT "${LINE}" MATCHES "^CONFIG_BOARD_ETC_ROMFS_PASSWD_PASSWORD=")
+    file(APPEND ${OUTPUT_FILE} "${LINE}\n")
+  endif()
 endforeach()
 
+message(
+  WARNING "CONFIG_BOARD_ETC_ROMFS_PASSWD_PASSWORD and"

Review Comment:
   why not move to the first patch? the change should be completed in one patch



##########
cmake/nuttx_add_romfs.cmake:
##########
@@ -332,6 +340,17 @@ function(process_all_directory_romfs)
       list(APPEND MKPASSWD_KEY_ARGS --key4 ${CONFIG_FSUTILS_PASSWD_KEY4})
     endif()
 
+    if("${CONFIG_FSUTILS_PASSWD_KEY1}" STREQUAL "0x12345678"

Review Comment:
   why dup the warning in many places? it's enough to warning in mkpasswd.c



##########
tools/Unix.mk:
##########
@@ -778,6 +784,14 @@ savedefconfig: apps_preconfig
        $(Q) rm -f warning.tmp
        $(Q) rm -f defconfig.tmp
        $(Q) rm -f sortedconfig.tmp
+       $(Q) if ! (grep -q '^CONFIG_ARCH_BOARD_SIM=y' .config && \

Review Comment:
   why check CONFIG_ARCH_BOARD_SIM in the common code



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