wireguard: make wireguard-linux-compat PROJECT conditional

This commit is contained in:
chewitt 2020-04-13 03:51:50 +00:00
parent 17a7f58e17
commit 790d36914e

View File

@ -23,7 +23,15 @@ if [ "$OPENVPN_SUPPORT" = "yes" ]; then
fi fi
if [ "$WIREGUARD_SUPPORT" = "yes" ]; then if [ "$WIREGUARD_SUPPORT" = "yes" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET wireguard-tools wireguard-linux-compat" # projects using Linux 5.6+ can use the in-kernel module
case $PROJECT in
Allwinner|Amlogic|Generic|NXP|Qualcomm)
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET wireguard-tools"
;;
*)
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET wireguard-tools wireguard-linux-compat"
;;
esac
fi fi
# nss needed by inputstream.adaptive, chromium etc. # nss needed by inputstream.adaptive, chromium etc.