This is an automated email from the ASF dual-hosted git repository.
acassis 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 96baf9886 Make.defs:make all AROBJS and OBJS batch cleaned in
Application
96baf9886 is described below
commit 96baf98862eefcf0656b5170f957c8143f93788e
Author: xuxin19 <[email protected]>
AuthorDate: Wed Jan 24 15:00:17 2024 +0800
Make.defs:make all AROBJS and OBJS batch cleaned in Application
application `OBJS` clean call `CLEAN` macro defined in nuttx/tools/Config.mk
variables are expand directly within the marco, that has potential issue
this patch clean and reset these variables
Signed-off-by: xuxin19 <[email protected]>
---
Make.defs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Make.defs b/Make.defs
index d13634ff9..10aa51ead 100644
--- a/Make.defs
+++ b/Make.defs
@@ -169,9 +169,17 @@ endef
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
define CLEANAROBJS
$(call DELFILE,$(subst /,\,$(AROBJS)))
+ $(call DELFILE,$(subst /,\,$(OBJS)))
+ $(eval OBJS :=)
endef
else
define CLEANAROBJS
- $(Q) rm -f $(AROBJS)
+ $(call SPLITVARIABLE,CLEAN_AROBJS,${AROBJS},100)
+ $(foreach BATCH, $(CLEAN_AROBJS_TOTAL), \
+ $(shell rm -rf $(CLEAN_AROBJS_$(BATCH))))
+ $(call SPLITVARIABLE,CLEAN_OBJS,${OBJS},100)
+ $(foreach BATCH, $(CLEAN_OBJS_TOTAL), \
+ $(shell rm -rf $(CLEAN_OBJS_$(BATCH))))
+ $(eval OBJS :=)
endef
endif
\ No newline at end of file