tools/llvm-bpf: add llvm+clang build suitable for compiling code to eBPF

Preparation for building packages that ship eBPF code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2021-10-17 17:50:53 +02:00
parent 1c07eab9f8
commit faa6a9a04b
3 changed files with 45 additions and 0 deletions

View File

@@ -37,6 +37,13 @@ menuconfig TARGET_OPTIONS
Most people will answer N.
config BUILD_LLVM_BPF
bool "Build LLVM toolchain for eBPF" if DEVEL
help
If enabled, a LLVM toolchain for building eBPF binaries will be built.
If this is not enabled, eBPF packages can only be built if the host
has a suitable toolchain
menuconfig EXTERNAL_TOOLCHAIN
bool