tools/Makefile: increase the incremental compile speed

Change-Id: I7ec2df10dee6b6f713cca7b51358e90cf3eb74c9
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-03-01 23:04:55 +08:00
committed by 刘海涛
parent 92b0b1d0f2
commit b8a4d9c043
2 changed files with 2 additions and 25 deletions
+1 -1
View File
@@ -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
View File
@@ -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