From ddcfe51ef5939b842d2d1d10280d6c698890b780 Mon Sep 17 00:00:00 2001 From: Sebastian Sumpf Date: Tue, 25 Jun 2024 10:22:35 +0200 Subject: [PATCH] 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 --- repos/base/mk/global.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repos/base/mk/global.mk b/repos/base/mk/global.mk index 3c6c0461ae..6d0dc55043 100644 --- a/repos/base/mk/global.mk +++ b/repos/base/mk/global.mk @@ -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)))