From: Felix Fietkau Date: Fri, 26 Nov 2021 10:25:40 +0000 (+0100) Subject: llvm-bpf: fix rebuild check for generating tarball X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fb6c34d355e19152550a8347cde13e1c359f1aca;p=openwrt%2Fstaging%2Flinusw.git llvm-bpf: fix rebuild check for generating tarball Check the version file, as it will be regenerated on rebuild Signed-off-by: Felix Fietkau --- 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)") \