tools/llvm-bpf: include host os/arch in tarball name
authorFelix Fietkau <nbd@nbd.name>
Sun, 21 Nov 2021 11:16:44 +0000 (12:16 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 21 Nov 2021 12:47:18 +0000 (13:47 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
tools/llvm-bpf/Makefile

index 4b4e67e201627e5af0db521ad8a5af837f4e03e7..586c8dba2d0f4c256c4c2a43f3d71a1b592f6a61 100644 (file)
@@ -41,7 +41,7 @@ CMAKE_HOST_OPTIONS += \
        -DLLVM_TOOLCHAIN_TOOLS="llvm-objcopy;llvm-objdump;llvm-readelf;llvm-strip;llvm-ar;llvm-as;llvm-dis;llvm-link;llvm-nm;llvm-ranlib;llc;opt" \
        -DCMAKE_SKIP_RPATH=OFF
 
-$(BIN_DIR)/llvm-bpf-$(PKG_VERSION).tar.xz: $(HOST_STAMP_INSTALLED)
+$(BIN_DIR)/$(LLVM_BPF_PREFIX).tar.xz: $(HOST_STAMP_INSTALLED)
        echo "$(PKG_VERSION)" > $(CMAKE_HOST_INSTALL_PREFIX)/.llvm-version
        STRIP_KMOD= PATCHELF= STRIP=strip $(SCRIPT_DIR)/rstrip.sh $(STAGING_DIR_HOST)/llvm-bpf
        tar -C $(STAGING_DIR_HOST) \
@@ -50,7 +50,7 @@ $(BIN_DIR)/llvm-bpf-$(PKG_VERSION).tar.xz: $(HOST_STAMP_INSTALLED)
        mv $@.tmp $@
 
 ifneq ($(CONFIG_SDK_LLVM_BPF),)
-compile: $(BIN_DIR)/llvm-bpf-$(PKG_VERSION).tar.xz
+compile: $(BIN_DIR)/$(LLVM_BPF_PREFIX).tar.xz
 endif
 
 define Host/Install