mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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 <xuxin19@xiaomi.com>
This commit is contained in:
parent
c5c18a2997
commit
e558c8e028
2 changed files with 2 additions and 2 deletions
|
|
@ -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) \
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ endef
|
|||
|
||||
define AROBJSRULES
|
||||
$(1) : $(2)
|
||||
cp $(2) $(1)
|
||||
@ cp $(2) $(1)
|
||||
endef
|
||||
|
||||
# CLEANAROBJS - del AR target files exclusively
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue