From eab77139048fded1794927eb8fb3c1f6509ffd71 Mon Sep 17 00:00:00 2001 From: Josip Ponjavic Date: Mon, 18 Oct 2021 00:53:17 +0200 Subject: [PATCH] 5.14.13-2 (clr 5.14.12-1082) re-add STRIP modules and vmlinux --- .SRCINFO | 4 +++- PKGBUILD | 12 ++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 8a93c53..48f0d5d 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-clear pkgdesc = Clear Linux pkgver = 5.14.13 - pkgrel = 1 + pkgrel = 2 url = https://github.com/clearlinux-pkgs/linux arch = x86_64 license = GPL2 @@ -10,6 +10,7 @@ pkgbase = linux-clear makedepends = git makedepends = kmod makedepends = libelf + makedepends = pahole makedepends = xmlto options = !strip source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.14.tar.xz @@ -43,3 +44,4 @@ pkgname = linux-clear pkgname = linux-clear-headers pkgdesc = Headers and scripts for building modules for the Clear Linux kernel + depends = pahole diff --git a/PKGBUILD b/PKGBUILD index 5ef59a9..31b2a63 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -79,12 +79,12 @@ _srcname=linux-${_major} _clr=${_major}.12-1082 pkgbase=linux-clear pkgver=${_major}.${_minor} -pkgrel=1 +pkgrel=2 pkgdesc='Clear Linux' arch=('x86_64') url="https://github.com/clearlinux-pkgs/linux" license=('GPL2') -makedepends=('bc' 'cpio' 'git' 'kmod' 'libelf' 'xmlto') +makedepends=('bc' 'cpio' 'git' 'kmod' 'libelf' 'pahole' 'xmlto') options=('!strip') _gcc_more_v='20210914' source=( @@ -234,7 +234,7 @@ prepare() { build() { cd ${_srcname} - make bzImage modules + make all } _package() { @@ -260,7 +260,7 @@ _package() { echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase" echo "Installing modules..." - make INSTALL_MOD_PATH="$pkgdir/usr" modules_install + make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install # remove build and source links rm "$modulesdir"/{source,build} @@ -268,6 +268,7 @@ _package() { _package-headers() { pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel" + depends=(pahole) cd ${_srcname} local builddir="$pkgdir/usr/lib/modules/$(