mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 00:52:11 +08:00
tools/Makefile: increase the incremental compile speed
Change-Id: I7ec2df10dee6b6f713cca7b51358e90cf3eb74c9 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -61,7 +61,7 @@ $(COBJS): %$(OBJEXT): %.c
|
||||
$(call COMPILE, $<, $@)
|
||||
|
||||
.built: .tzbuilt romfs $(OBJS)
|
||||
$(call ARCHIVE_ADD, ..$(DELIM)$(BIN), $(filter-out .tzbuilt romfs, $^))
|
||||
$(call ARCHIVE, ..$(DELIM)$(BIN), $(filter-out .tzbuilt romfs, $^))
|
||||
$(Q) touch .built
|
||||
|
||||
# ROMFS file system containing the TZ database
|
||||
|
||||
+1
-24
@@ -335,34 +335,11 @@ define INSTALL_LIB
|
||||
$(Q) install -m 0644 $1 $2
|
||||
endef
|
||||
|
||||
# ARCHIVE_ADD - Add a list of files to an archive
|
||||
# Example: $(call ARCHIVE_ADD, archive-file, "file1 file2 file3 ...")
|
||||
#
|
||||
# Note: The fileN strings may not contain spaces or characters that may be
|
||||
# interpreted strangely by the shell
|
||||
#
|
||||
# Depends on these settings defined in board-specific Make.defs file
|
||||
# installed at $(TOPDIR)/Make.defs:
|
||||
#
|
||||
# AR - The command to invoke the archiver (includes any options)
|
||||
#
|
||||
# Depends on this settings defined in board-specific defconfig file installed
|
||||
# at $(TOPDIR)/.config:
|
||||
#
|
||||
# CONFIG_WINDOWS_NATIVE - Defined for a Windows native build
|
||||
|
||||
define ARCHIVE_ADD
|
||||
@echo "AR (add): ${shell basename $(1)} $(2)"
|
||||
$(Q) $(AR) $1 $(2)
|
||||
endef
|
||||
|
||||
# ARCHIVE - Same as above, but ensure the archive is
|
||||
# created from scratch
|
||||
|
||||
define ARCHIVE
|
||||
@echo "AR (create): ${shell basename $(1)} $(2)"
|
||||
$(Q) $(RM) $1
|
||||
$(Q) $(AR) $1 $(2)
|
||||
$(AR) $1 $(2)
|
||||
endef
|
||||
|
||||
# PRELINK - Prelink a list of files
|
||||
|
||||
Reference in New Issue
Block a user