llvm-bpf: use SOURCE_DATE_EPOCH for generated tarball
authorFelix Fietkau <nbd@nbd.name>
Fri, 26 Nov 2021 10:24:39 +0000 (11:24 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 26 Nov 2021 10:37:13 +0000 (11:37 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/llvm-bpf/Makefile

index c9ada017e68c42fb038375cad5160cd9d0712678..0e8a8826e6700bd1b99ec88027b0178b7ec33c76 100644 (file)
@@ -17,6 +17,7 @@ LLVM_TAR := $(BIN_DIR)/$(LLVM_BPF_PREFIX).tar.xz
 $(LLVM_TAR): $(HOST_STAMP_INSTALLED)
        tar -C $(STAGING_DIR_HOST) \
                -I '$(STAGING_DIR_HOST)/bin/xz -7e -T$(if $(filter 1,$(NPROC)),2,0)' \
+               $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
                -cf $@.tmp llvm-bpf $(LLVM_BPF_PREFIX)
        mv $@.tmp $@