bpf: check llvm version only when used
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 26 Oct 2022 21:05:31 +0000 (23:05 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 30 Oct 2022 23:46:55 +0000 (00:46 +0100)
commitc58177b5dcb3461efef0adefe570dd8a8d966ec4
treeecf9270585b2c8dcdd40b8f9026937c8f5180d9d
parent95c216806b2520d5638b500f61d3788e8ecbabc9
bpf: check llvm version only when used

unetd always includes $(INCLUDE_DIR)/bpf.mk. This file always checks if
the LLVM version is supported in CLANG_VER_VALID. unetd only needs bpf
when UNETD_VXLAN_SUPPORT is set. It fails when UNETD_VXLAN_SUPPORT is
not set and llvm is not installed.

Fix it by only checking the LLVM version when a LLVM toolchain is
available.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/bpf.mk