From fb6c34d355e19152550a8347cde13e1c359f1aca Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 26 Nov 2021 11:25:40 +0100 Subject: [PATCH] llvm-bpf: fix rebuild check for generating tarball Check the version file, as it will be regenerated on rebuild Signed-off-by: Felix Fietkau --- target/llvm-bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/llvm-bpf/Makefile b/target/llvm-bpf/Makefile index 0e8a8826e6..6cadf693ef 100644 --- a/target/llvm-bpf/Makefile +++ b/target/llvm-bpf/Makefile @@ -14,7 +14,7 @@ LLVM_VERSION := $(shell cat $(STAGING_DIR_HOST)/llvm-bpf/.llvm-version) LLVM_BPF_PREFIX := llvm-bpf-$(LLVM_VERSION).$(HOST_OS)-$(HOST_ARCH) LLVM_TAR := $(BIN_DIR)/$(LLVM_BPF_PREFIX).tar.xz -$(LLVM_TAR): $(HOST_STAMP_INSTALLED) +$(LLVM_TAR): $(STAGING_DIR_HOST)/llvm-bpf/.llvm-version 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)") \ -- 2.30.2