make/allsyms: skip the unnecessary link operation
For incremental compilation, skip the stage 1 dummy link operation if nuttx elf has been generated Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
186ac17f1f
commit
7ed0b97414
@ -168,7 +168,7 @@ ifneq ($(CONFIG_ALLSYMS),y)
|
||||
$(LDSTARTGROUP) $(LDLIBS) $(EXTRA_LIBS) $(LDENDGROUP)
|
||||
else
|
||||
$(Q) # Link and generate default table
|
||||
$(Q) $(call LINK_ALLSYMS, $^)
|
||||
$(Q) $(if $(wildcard $(shell echo $(NUTTX))),,$(call LINK_ALLSYMS,$^))
|
||||
$(Q) # Extract all symbols
|
||||
$(Q) $(call LINK_ALLSYMS, $^)
|
||||
$(Q) # Extract again since the table offset may changed
|
||||
|
@ -170,7 +170,7 @@ ifneq ($(CONFIG_ALLSYMS),y)
|
||||
$(LDSTARTGROUP) $(LDLIBS) $(EXTRA_LIBS) $(LDENDGROUP)
|
||||
else
|
||||
$(Q) # Link and generate default table
|
||||
$(Q) $(call LINK_ALLSYMS, $^)
|
||||
$(Q) $(if $(wildcard $(shell echo $(NUTTX))),,$(call LINK_ALLSYMS,$^))
|
||||
$(Q) # Extract all symbols
|
||||
$(Q) $(call LINK_ALLSYMS, $^)
|
||||
$(Q) # Extract again since the table offset may changed
|
||||
|
@ -122,7 +122,7 @@ ifneq ($(CONFIG_ALLSYMS),y)
|
||||
$(LDSTARTGROUP) $(LDLIBS) $(EXTRA_LIBS) $(LDENDGROUP)
|
||||
else
|
||||
$(Q) # Link and generate default table
|
||||
$(Q) $(call LINK_ALLSYMS, $^)
|
||||
$(Q) $(if $(wildcard $(shell echo $(NUTTX))),,$(call LINK_ALLSYMS,$^))
|
||||
$(Q) # Extract all symbols
|
||||
$(Q) $(call LINK_ALLSYMS, $^)
|
||||
$(Q) # Extract again since the table offset may changed
|
||||
|
Loading…
Reference in New Issue
Block a user