base/global.mk: TAR_OPT

Add TAR_OPT to global.mk that defaults to user and group 1, while
setting mtime to 0 for tar archives. This can be used in components to
produce consistent (reproducible) tar archives.

issue #5255
This commit is contained in:
Sebastian Sumpf 2024-06-25 10:22:35 +02:00 committed by Norman Feske
parent 943dfa10e7
commit ddcfe51ef5

View File

@ -244,6 +244,11 @@ LD_SCRIPT_SO ?= $(BASE_DIR)/src/ld/genode_rel.ld
#
AS_OPT += $(AS_MARCH)
#
# Default tar options
#
TAR_OPT ?= --owner=1 --group=1 --mtime=@0
ALL_INC_DIR := .
ALL_INC_DIR += $(INC_DIR)
ALL_INC_DIR += $(foreach DIR,$(REP_INC_DIR), $(foreach REP,$(REPOSITORIES),$(REP)/$(DIR)))