Skip to content

Commit

Permalink
tools: ARCHIVE uses the full path
Browse files Browse the repository at this point in the history
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
  • Loading branch information
Gary-Hobson authored and xiaoxiang781216 committed Feb 1, 2023
1 parent ab2b09e commit e14309a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/Config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ endef

define INSTALL_LIB
@echo "IN: $1 -> $2"
$(Q) install -m 0644 $1 $2
$(Q) install -m 0644 $(abspath $1) $(abspath $2)
endef

# ARCHIVE_ADD - Add a list of files to an archive
Expand All @@ -393,15 +393,15 @@ endef

define ARCHIVE_ADD
@echo "AR (add): ${shell basename $(1)} $(2)"
$(Q) $(AR) $1 $(2)
$(Q) $(AR) $(abspath $1) $(abspath $2)
endef

# ARCHIVE - Same as above, but ensure the archive is
# created from scratch

define ARCHIVE
$(Q) $(RM) $1
$(Q) $(AR) $1 $(2)
$(Q) $(AR) $(abspath $1) $(abspath $2)
endef

# PRELINK - Prelink a list of files
Expand Down

0 comments on commit e14309a

Please sign in to comment.