diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-28 05:29:26 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-28 05:29:26 -0600 |
commit | 8505f2b77d3a42124fdbe7dc913ed0f904ca1a16 (patch) | |
tree | c7b8a4bc385674b879889f51c22d42060b3df0ff | |
parent | b412a965b735d5ab4816a0b438acab6c60f0dc11 (diff) | |
download | packages-8505f2b77d3a42124fdbe7dc913ed0f904ca1a16.tar.gz packages-8505f2b77d3a42124fdbe7dc913ed0f904ca1a16.tar.bz2 packages-8505f2b77d3a42124fdbe7dc913ed0f904ca1a16.tar.xz packages-8505f2b77d3a42124fdbe7dc913ed0f904ca1a16.zip |
user/wireguard-module: Initial support for module signing
-rw-r--r-- | user/wireguard-module/APKBUILD | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/user/wireguard-module/APKBUILD b/user/wireguard-module/APKBUILD index 6543966cd..614beff16 100644 --- a/user/wireguard-module/APKBUILD +++ b/user/wireguard-module/APKBUILD @@ -25,6 +25,11 @@ build() { } package() { + if [ -f $HOME/kernel_key.pem ]; then + /usr/src/linux-$_kver$_kflavour/scripts/sign-file sha512 \ + $HOME/kernel_key.pem $HOME/kernel_key.pem \ + "$builddir"/src/wireguard.ko + fi make -C src DEPMOD=true KERNELDIR="/usr/src/linux-$_kver$_kflavour" INSTALL_MOD_PATH="$pkgdir" module-install } |