This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new 3cbcbb652 bin:Copy debug info to a separate folder 3cbcbb652 is described below commit 3cbcbb65217177dcef4dd8aa584f01d51b31a95d Author: anjiahao <anjia...@xiaomi.com> AuthorDate: Wed Nov 20 20:01:40 2024 +0800 bin:Copy debug info to a separate folder Signed-off-by: anjiahao <anjia...@xiaomi.com> --- .gitignore | 1 + Application.mk | 4 +++- Make.defs | 3 ++- Makefile | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c30e7faea..d183a413f 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ .kconfig *.lock /bin +/bin_debug /boot_romfsimg.h /external /Kconfig diff --git a/Application.mk b/Application.mk index 9bd2fb20a..b73d1a684 100644 --- a/Application.mk +++ b/Application.mk @@ -305,7 +305,9 @@ $(PROGLIST): $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ) $(MAINZIGOBJ) $(MAINDOBJ) $(Q) mkdir -p $(BINDIR) $(call ELFLD, $(PROGOBJ_$@), $(call CONVERT_PATH,$@)) $(Q) chmod +x $@ -ifneq ($(CONFIG_DEBUG_SYMBOLS),y) +ifneq ($(CONFIG_DEBUG_SYMBOLS),) + $(Q) mkdir -p $(BINDIR_DEBUG) + $(Q) cp $@ $(BINDIR_DEBUG) $(Q) $(MODULESTRIP) $@ endif diff --git a/Make.defs b/Make.defs index 773ceef62..695dfa2be 100644 --- a/Make.defs +++ b/Make.defs @@ -64,6 +64,7 @@ LIBPATH ?= $(TOPDIR)$(DELIM)staging # The install path BINDIR ?= $(APPDIR)$(DELIM)bin +BINDIR_DEBUG ?= $(APPDIR)$(DELIM)bin_debug # The final build target @@ -184,4 +185,4 @@ define CLEANAROBJS $(shell rm -rf $(CLEAN_OBJS_$(BATCH)))) $(eval OBJS :=) endef -endif \ No newline at end of file +endif diff --git a/Makefile b/Makefile index c5910c6d2..b2b90c7c4 100644 --- a/Makefile +++ b/Makefile @@ -223,6 +223,7 @@ clean: $(foreach SDIR, $(CLEANDIRS), $(SDIR)_clean) $(call DELFILE, $(BIN)) $(call DELFILE, Kconfig) $(call DELDIR, $(BINDIR)) + $(call DELDIR, $(BINDIR_DEBUG)) $(call CLEAN) distclean: $(foreach SDIR, $(CLEANDIRS), $(SDIR)_distclean)