From 688a2e4050c6a411ca14b09e83522440eaef5a2f Mon Sep 17 00:00:00 2001 From: Josip Ponjavic Date: Sat, 3 Nov 2018 14:46:00 +0100 Subject: [PATCH] 4.18.16-6 (clr 4.18.16-650) XZ compress modules --- .SRCINFO | 3 ++- PKGBUILD | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index b5b9ea5..e8f076c 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = linux-clear pkgver = 4.18.16 - pkgrel = 5 + pkgrel = 6 url = https://github.com/clearlinux-pkgs/linux arch = x86_64 license = GPL2 @@ -44,6 +44,7 @@ pkgname = linux-clear depends = mkinitcpio>=0.7 optdepends = crda: to set the correct wireless channels of your country optdepends = modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig + provides = WIREGUARD-MODULE backup = etc/mkinitcpio.d/linux-clear.preset pkgname = linux-clear-headers diff --git a/PKGBUILD b/PKGBUILD index c2e913e..c397b8e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -68,7 +68,7 @@ _major=4.18 _minor=16 pkgver=${_major}.${_minor} _srcname=linux-${_major} -pkgrel=5 +pkgrel=6 _clr=650 arch=('x86_64') url="https://github.com/clearlinux-pkgs/linux" @@ -138,6 +138,13 @@ prepare() { msg2 "Enabling crypto_user module..." sed -i "s|# CONFIG_CRYPTO_USER is not set|CONFIG_CRYPTO_USER=m|g" ./.config + ### Compress modules + msg "Enabling XZ compressed modules..." + sed -i 's|^# CONFIG_MODULE_COMPRESS|\ +CONFIG_MODULE_COMPRESS=y\ +# CONFIG_MODULE_COMPRESS_GZIP is not set\ +CONFIG_MODULE_COMPRESS_XZ=y|' ./.config + ### Patch source to unlock additional gcc CPU optimizations # https://github.com/graysky2/kernel_gcc_patch if [ "${_enable_gcc_more_v}" = "y" ]; then @@ -185,6 +192,7 @@ _package() { pkgdesc="Clearlinux kernel and modules" depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7') optdepends=('crda: to set the correct wireless channels of your country' 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig') + provides=('WIREGUARD-MODULE') backup=("etc/mkinitcpio.d/${pkgbase}.preset") install=linux.install