llvm-bpf: fix rebuild check for generating tarball
authorFelix Fietkau <nbd@nbd.name>
Fri, 26 Nov 2021 10:25:40 +0000 (11:25 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 26 Nov 2021 10:37:19 +0000 (11:37 +0100)
Check the version file, as it will be regenerated on rebuild

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/llvm-bpf/Makefile

index 0e8a8826e6700bd1b99ec88027b0178b7ec33c76..6cadf693efe97e090f19aba8c4055efcf85a060e 100644 (file)
@@ -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)") \