diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-11-02 19:38:12 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-11-04 16:55:04 +0100 |
commit | a7c0d7c06c5b353c98f6db6b0b766d2ff3dd6887 (patch) | |
tree | 295038af20a99a089e7d049ea0d2c235bbd1443f /tools/llvm-bpf | |
parent | a6a9f9be278e718f3f8a5cb7640dd8035cc802b9 (diff) | |
download | upstream-a7c0d7c06c5b353c98f6db6b0b766d2ff3dd6887.tar.gz upstream-a7c0d7c06c5b353c98f6db6b0b766d2ff3dd6887.tar.bz2 upstream-a7c0d7c06c5b353c98f6db6b0b766d2ff3dd6887.zip |
llvm-bpf: move to staging_dir/host/llvm-bpf
This makes it easier to package it up for the download server
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/llvm-bpf')
-rw-r--r-- | tools/llvm-bpf/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/llvm-bpf/Makefile b/tools/llvm-bpf/Makefile index a5ba2a4cb7..ae279d26d2 100644 --- a/tools/llvm-bpf/Makefile +++ b/tools/llvm-bpf/Makefile @@ -24,6 +24,8 @@ CMAKE_SOURCE_SUBDIR := llvm include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/cmake.mk +CMAKE_HOST_INSTALL_PREFIX = $(STAGING_DIR_HOST)/llvm-bpf + CMAKE_HOST_OPTIONS += \ -DLLVM_ENABLE_BINDINGS=OFF \ -DLLVM_INCLUDE_DOCS=OFF \ @@ -31,6 +33,10 @@ CMAKE_HOST_OPTIONS += \ -DLLVM_INCLUDE_TESTS=OFF \ -DLLVM_ENABLE_PROJECTS="clang;lld" \ -DLLVM_TARGETS_TO_BUILD=BPF \ - -DCLANG_BUILD_EXAMPLES=OFF + -DCLANG_BUILD_EXAMPLES=OFF \ + -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON \ + -DLLVM_LINK_LLVM_DYLIB=ON \ + -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 $(eval $(call HostBuild)) |