wireguard-linux-compat: only build for raspberrypi

This commit is contained in:
Jonas Karlman 2020-05-10 21:42:50 +00:00
parent 10178defe9
commit ea2056ecef

View File

@ -23,15 +23,11 @@ if [ "$OPENVPN_SUPPORT" = "yes" ]; then
fi
if [ "$WIREGUARD_SUPPORT" = "yes" ]; then
# 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
# projects using Linux 5.6+ can use the in-kernel module
if [ "$LINUX" = "raspberrypi" ]; then
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET wireguard-linux-compat"
fi
fi
# nss needed by inputstream.adaptive, chromium etc.