add pahole dependency to headers on 5.11+ (#184)

This commit is contained in:
Matej Dian 2021-02-23 20:59:26 +01:00 committed by GitHub
parent b8657b4549
commit 796eceae9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -498,6 +498,13 @@ hackbase() {
hackheaders() { hackheaders() {
pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel" pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel"
provides=("linux-headers=${pkgver}" "${pkgbase}-headers=${pkgver}") provides=("linux-headers=${pkgver}" "${pkgbase}-headers=${pkgver}")
case $_basever in
54|57|58|59|510)
;;
*)
depends=('pahole')
;;
esac
cd "${srcdir}/${_srcpath}" cd "${srcdir}/${_srcpath}"
local builddir="${pkgdir}/usr/lib/modules/$(<version)/build" local builddir="${pkgdir}/usr/lib/modules/$(<version)/build"