mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
2496f436a8
Use similar efficient but faster compression algorithm. Signed-off-by: Paul Spooren <mail@aparcar.org>
31 lines
736 B
Makefile
31 lines
736 B
Makefile
#
|
|
# Copyright (C) 2021 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
override MAKEFLAGS=
|
|
|
|
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.zst
|
|
|
|
$(LLVM_TAR): $(STAGING_DIR_HOST)/llvm-bpf/.llvm-version
|
|
tar -C $(STAGING_DIR_HOST) \
|
|
-I '$(STAGING_DIR_HOST)/bin/zstd -T0 --ultra -20' \
|
|
$(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
|
|
-cf $@.tmp llvm-bpf $(LLVM_BPF_PREFIX)
|
|
mv $@.tmp $@
|
|
|
|
download:
|
|
prepare:
|
|
compile: $(LLVM_TAR)
|
|
install: compile
|
|
|
|
clean:
|
|
rm -f $(LLVM_TAR)
|