mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
wireguard-linux-compat: add WireGuard kernel module package
This commit is contained in:
parent
0a7bb4ffeb
commit
6b8fe40614
@ -0,0 +1 @@
|
|||||||
|
wireguard
|
27
packages/network/wireguard-linux-compat/package.mk
Normal file
27
packages/network/wireguard-linux-compat/package.mk
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
|
PKG_NAME="wireguard-linux-compat"
|
||||||
|
PKG_VERSION="v0.0.20200121"
|
||||||
|
PKG_SHA256="509a26a28ac1e96cf15d9a457a4143c43d4455eee877fdef20ebf11cbfd012b6"
|
||||||
|
PKG_LICENSE="GPLv2"
|
||||||
|
PKG_SITE="https://www.wireguard.com"
|
||||||
|
PKG_URL="https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-$PKG_VERSION.tar.xz"
|
||||||
|
PKG_DEPENDS_TARGET="toolchain linux libmnl"
|
||||||
|
PKG_NEED_UNPACK="$LINUX_DEPENDS"
|
||||||
|
PKG_LONGDESC="WireGuard VPN kernel module"
|
||||||
|
PKG_TOOLCHAIN="manual"
|
||||||
|
PKG_IS_KERNEL_PKG="yes"
|
||||||
|
|
||||||
|
pre_make_target() {
|
||||||
|
unset LDFLAGS
|
||||||
|
}
|
||||||
|
|
||||||
|
make_target() {
|
||||||
|
kernel_make KERNELDIR=$(kernel_path) -C src/ module
|
||||||
|
}
|
||||||
|
|
||||||
|
makeinstall_target() {
|
||||||
|
mkdir -p $INSTALL/$(get_full_module_dir)/$PKG_NAME
|
||||||
|
cp src/*.ko $INSTALL/$(get_full_module_dir)/$PKG_NAME
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user