diff --git a/linux57-tkg/PKGBUILD b/linux57-tkg/PKGBUILD index a60c29f..75ba755 100644 --- a/linux57-tkg/PKGBUILD +++ b/linux57-tkg/PKGBUILD @@ -94,7 +94,7 @@ pkgdesc='Linux-tkg' arch=('x86_64') # no i686 in here url="http://www.kernel.org/" license=('GPL2') -makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'libelf' 'patchutils' 'flex' 'python-sphinx' 'python-sphinx_rtd_theme' 'graphviz' 'imagemagick' 'git') +makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'libelf' 'pahole' 'patchutils' 'flex' 'python-sphinx' 'python-sphinx_rtd_theme' 'graphviz' 'imagemagick' 'git') optdepends=('schedtool') options=('!strip') source=("https://www.kernel.org/pub/linux/kernel/v5.x/linux-${_basekernel}.tar.xz" @@ -265,7 +265,7 @@ hackbase() { echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase" msg2 "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} @@ -274,9 +274,6 @@ hackbase() { sed -e "s|cleanup|${pkgbase}-cleanup|g" "${srcdir}"/90-cleanup.hook | install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/90-${pkgbase}.hook" install -Dm755 "${srcdir}"/cleanup "${pkgdir}/usr/share/libalpm/scripts/${pkgbase}-cleanup" - - msg2 "Fixing permissions..." - chmod -Rc u=rwX,go=rX "$pkgdir" } hackheaders() { @@ -354,8 +351,8 @@ hackheaders() { mkdir -p "$pkgdir/usr/src" ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" - msg2 "Fixing permissions..." - chmod -Rc u=rwX,go=rX "$pkgdir" + echo "Stripping vmlinux..." + strip -v $STRIP_STATIC "$builddir/vmlinux" if [ $_NUKR == "true" ]; then rm -rf "$srcdir" # Nuke the entire src folder so it'll get regenerated clean on next build diff --git a/linux58-rc-tkg/PKGBUILD b/linux58-rc-tkg/PKGBUILD index 49c62c2..bd14fc0 100644 --- a/linux58-rc-tkg/PKGBUILD +++ b/linux58-rc-tkg/PKGBUILD @@ -89,7 +89,7 @@ pkgdesc='Linux-tkg' arch=('x86_64') # no i686 in here url="http://www.kernel.org/" license=('GPL2') -makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'libelf' 'patchutils' 'flex' 'python-sphinx' 'python-sphinx_rtd_theme' 'graphviz' 'imagemagick' 'git') +makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'libelf' 'patchutils' 'pahole' 'flex' 'python-sphinx' 'python-sphinx_rtd_theme' 'graphviz' 'imagemagick' 'git') optdepends=('schedtool') options=('!strip') source=("https://git.kernel.org/torvalds/t/linux-${_basekernel}-${_sub}.tar.gz" @@ -251,7 +251,7 @@ hackbase() { echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase" msg2 "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} @@ -260,9 +260,6 @@ hackbase() { sed -e "s|cleanup|${pkgbase}-cleanup|g" "${srcdir}"/90-cleanup.hook | install -Dm644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/90-${pkgbase}.hook" install -Dm755 "${srcdir}"/cleanup "${pkgdir}/usr/share/libalpm/scripts/${pkgbase}-cleanup" - - msg2 "Fixing permissions..." - chmod -Rc u=rwX,go=rX "$pkgdir" } hackheaders() { @@ -340,8 +337,8 @@ hackheaders() { mkdir -p "$pkgdir/usr/src" ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" - msg2 "Fixing permissions..." - chmod -Rc u=rwX,go=rX "$pkgdir" + echo "Stripping vmlinux..." + strip -v $STRIP_STATIC "$builddir/vmlinux" if [ $_NUKR == "true" ]; then rm -rf "$srcdir" # Nuke the entire src folder so it'll get regenerated clean on next build