summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoregnappahz2020-12-20 12:58:57 +0100
committeregnappahz2020-12-20 12:58:57 +0100
commitb00460940e5dc39b837b7c3f03459cce6a0514ee (patch)
tree6ecdccf5fd1f043a4b0cac0183c18bb286fc639f /PKGBUILD
parent3da302fbb34c9d447a4a2f8ecf455737d5d510b0 (diff)
downloadaur-b00460940e5dc39b837b7c3f03459cce6a0514ee.tar.gz
Made headers more flexible thanks to hockeymikey
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 3 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c95a0d96ac2..f5ef41a601a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgbase=linux-amd-znver2
_srcname=linux
gitver=v5.10.1
pkgver=5.10.v.1
-pkgrel=1
+pkgrel=2
arch=('x86_64')
url="https://www.kernel.org/"
license=('GPL2')
@@ -159,8 +159,7 @@ _package-headers() {
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/include"
- for i in acpi asm-generic config crypto drm generated keys linux math-emu \
- media net pcmcia scsi sound trace uapi video xen; do
+ for i in $(ls include/); do
cp -a include/${i} "${pkgdir}/usr/lib/modules/${_kernver}/build/include/"
done
@@ -176,14 +175,9 @@ _package-headers() {
chmod og-w -R "${pkgdir}/usr/lib/modules/${_kernver}/build/scripts"
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/.tmp_versions"
+ # add kernel files to headers
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/kernel"
-
cp arch/${KARCH}/Makefile "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/"
-
- if [ "${CARCH}" = "i686" ]; then
- cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/"
- fi
-
cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/kernel/"
# add dm headers
@@ -232,8 +226,6 @@ _package-headers() {
rm -rf $modarch
done <<< $(find "${pkgdir}"/usr/lib/modules/${_kernver}/build/arch/ -maxdepth 1 -mindepth 1 -type d | grep -v /x86$)
- #Fix missing vdso files after overhaul
- cp -r "include/vdso/" "${pkgdir}/usr/lib/modules/${_kernver}/build/include/"
}
_package-docs() {