diff options
author | Josip Ponjavic | 2021-10-18 00:55:13 +0200 |
---|---|---|
committer | Josip Ponjavic | 2021-10-18 00:55:13 +0200 |
commit | f6b8c3fb11b440d2e7edaaea88cb0bd99af654b6 (patch) | |
tree | f802e102b5625a3a8cc7a1bf19d4cf7ecb81220f | |
parent | fcd13d1c71b328ca7455e23d08ec26b1e01402c6 (diff) | |
download | aur-f6b8c3fb11b440d2e7edaaea88cb0bd99af654b6.tar.gz |
4.19.212-2 (clr 4.19.211-224) re-add STRIP modules and vmlinux
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 11 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = linux-clear-lts2018 pkgdesc = Clear Linux lts2018 pkgver = 4.19.212 - pkgrel = 1 + pkgrel = 2 url = https://github.com/clearlinux-pkgs/linux-lts2018 arch = x86_64 license = GPL2 @@ -10,6 +10,7 @@ pkgbase = linux-clear-lts2018 makedepends = git makedepends = kmod makedepends = libelf + makedepends = pahole makedepends = xmlto options = !strip source = https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.tar.xz @@ -39,3 +40,4 @@ pkgname = linux-clear-lts2018 pkgname = linux-clear-lts2018-headers pkgdesc = Headers and scripts for building modules for the Clear Linux lts2018 kernel + depends = pahole @@ -79,12 +79,12 @@ _srcname=linux-${_major} _clr=${_major}.211-224 pkgbase=linux-clear-lts2018 pkgver=${_major}.${_minor} -pkgrel=1 +pkgrel=2 pkgdesc='Clear Linux lts2018' arch=('x86_64') url="https://github.com/clearlinux-pkgs/linux-lts2018" license=('GPL2') -makedepends=('bc' 'cpio' 'git' 'kmod' 'libelf' 'xmlto') +makedepends=('bc' 'cpio' 'git' 'kmod' 'libelf' 'pahole' 'xmlto') options=('!strip') _gcc_more_v='20210914' source=( @@ -223,7 +223,7 @@ prepare() { build() { cd ${_srcname} - make bzImage modules + make all } _package() { @@ -249,7 +249,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} @@ -257,6 +257,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/$(<version)/build" @@ -331,6 +332,9 @@ _package-headers() { esac done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0) + echo "Stripping vmlinux..." + strip -v $STRIP_STATIC "$builddir/vmlinux" + echo "Adding symlink..." mkdir -p "$pkgdir/usr/src" ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" |