From e558c8e028384c540e4633b32235f719f987b066 Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Thu, 17 Oct 2024 11:49:59 +0800 Subject: [PATCH] build(bugfix):fix Make.dep location missing when specifying PREFIX, hide invalid cp output from ar PREFIX needs to be added to Make.dep to avoid Make.dep regeneration during incremental compilation AROBJSRULES is just the .o file in the copy archive. Its output content is worthless, so we hide it by default. Signed-off-by: xuxin19 --- Application.mk | 2 +- Make.defs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Application.mk b/Application.mk index 69f042a2f..40f10591c 100644 --- a/Application.mk +++ b/Application.mk @@ -370,7 +370,7 @@ register:: endif $(PREFIX).depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH))))) $(DEPCONFIG) - $(shell echo "# Gen Make.dep automatically" >Make.dep) + $(shell echo "# Gen Make.dep automatically" >$(PREFIX)Make.dep) $(call SPLITVARIABLE,ALL_DEP_OBJS,$^,100) $(foreach BATCH, $(ALL_DEP_OBJS_TOTAL), \ $(shell $(MKDEP) $(DEPPATH) --obj-suffix .c$(SUFFIX)$(OBJEXT) "$(CC)" -- $(CFLAGS) -- $(filter %.c,$(ALL_DEP_OBJS_$(BATCH))) >>$(PREFIX)Make.dep) \ diff --git a/Make.defs b/Make.defs index 66d88de83..773ceef62 100644 --- a/Make.defs +++ b/Make.defs @@ -163,7 +163,7 @@ endef define AROBJSRULES $(1) : $(2) - cp $(2) $(1) + @ cp $(2) $(1) endef # CLEANAROBJS - del AR target files exclusively