[openwrt/openwrt] llvm-bpf: fix rebuild check for generating tarball

LEDE Commits lede-commits at lists.infradead.org
Fri Nov 26 02:38:39 PST 2021


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/fb6c34d355e19152550a8347cde13e1c359f1aca

commit fb6c34d355e19152550a8347cde13e1c359f1aca
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Nov 26 11:25:40 2021 +0100

    llvm-bpf: fix rebuild check for generating tarball
    
    Check the version file, as it will be regenerated on rebuild
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 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)") \



More information about the lede-commits mailing list