xiaoxiang781216 commented on code in PR #9400:
URL: https://github.com/apache/nuttx/pull/9400#discussion_r1214692445
##########
tools/configure.c:
##########
@@ -1590,6 +1596,37 @@ static void refresh(void)
}
}
+static void save_original_config(void)
+{
+ snprintf(g_buffer, BUFFER_SIZE, "%s%c.config", g_topdir, g_delim);
+ char *source_config = strdup(g_buffer);
+ snprintf(g_buffer, BUFFER_SIZE, "%s%c.config.orig", g_topdir, g_delim);
Review Comment:
why need save config.orig file
##########
tools/Win.mk:
##########
@@ -235,6 +235,15 @@ tools\mkconfig$(HOSTEXEEXT):
$(Q) $(MAKE) -C tools -f Makefile.host mkconfig$(HOSTEXEEXT)
include\nuttx\config.h: $(TOPDIR)\.config tools\mkconfig$(HOSTEXEEXT)
+ $(Q) grep -v "CONFIG_BASE_DEFCONFIG" "$(TOPDIR)\.config" >
"$(TOPDIR)\.config.tmp"
+# In-place edit can mess up permissions on Windows
Review Comment:
@lucasssvaz why need edit the .config?
--
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]