net-vpn/amneziawg-linux-kernel-module: remove WIREGUARD_VERSION var in Makefile

Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
This commit is contained in:
Alexander Miroshnichenko 2025-10-12 07:54:08 +03:00
parent c06d163a4d
commit b8cffeb26a

View File

@ -39,6 +39,8 @@ pkg_setup() {
src_prepare() {
default
sed -i "/^WIREGUARD_VERSION =/Id" "${S}/src/Makefile" || die
if kernel_is -ge 5 6 0; then
# We need to select a directory with kernel sources.
# Usually, /usr/src/linux is the right choise, so we check it first.