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 <xuxin19@xiaomi.com>
This commit is contained in:
parent
20c90d5b43
commit
96baf98862
10
Make.defs
10
Make.defs
@ -169,9 +169,17 @@ endef
|
|||||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
define CLEANAROBJS
|
define CLEANAROBJS
|
||||||
$(call DELFILE,$(subst /,\,$(AROBJS)))
|
$(call DELFILE,$(subst /,\,$(AROBJS)))
|
||||||
|
$(call DELFILE,$(subst /,\,$(OBJS)))
|
||||||
|
$(eval OBJS :=)
|
||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
define CLEANAROBJS
|
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
|
endef
|
||||||
endif
|
endif
|
Loading…
x
Reference in New Issue
Block a user