summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD68
1 files changed, 38 insertions, 30 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d69a73f..da2aa5e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,8 +14,8 @@
pkgbase=linux
_supver=5
-_majver=10
-_minver=16
+_majver=11
+_minver=0
_gccpatchver='20201113'
_gccpatchger='10.1'
_gccpatchker='5.8'
@@ -31,7 +31,7 @@ arch=(x86_64)
license=(GPL2)
makedepends=(
bc kmod libelf pahole cpio perl tar xz
-# xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick
+ xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick
)
conflicts=('linux-libre')
options=('!strip')
@@ -39,8 +39,11 @@ _srcname=linux-${pkgver}
source=(
https://www.kernel.org/pub/linux/kernel/v${_supver}.x/${_srcname}.tar.{xz,sign}
config # the main kernel config file
+ sphinx-workaround.patch # Sphinx 3.5 broke the build again
0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
- 0002-HID-quirks-Add-Apple-Magic-Trackpad-2-to-hid_have_special_driver-list.patch
+ 0002-Bluetooth-btusb-Some-Qualcomm-Bluetooth-adapters-stop-working.patch
+ 0003-Revert-drm-amd-display-reuse-current-context-instead-of-recreating-one.patch
+ 0004-drm-amdgpu-fix-shutdown-with-s0ix.patch
kernel_gcc_patch-${_gccpatchver}.tar.gz::https://github.com/graysky2/kernel_gcc_patch/archive/${_gccpatchver}.tar.gz
ath9k-regdom-hack.patch
raid6-default-algo.patch
@@ -50,11 +53,14 @@ validpgpkeys=(
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman
)
# https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
-b2sums=('3b8d952dbbe46511289e06bc41ccd66f5ac9f0d544973f6f0efa43286eac814ae756f096aefaba0f5c3a8f641351d35aca5a52725d3cb0252cb8f2b058851896'
+b2sums=('81300c27bd5476387a83123aaeb4163c73eb61e9245806c23660cb5e6a4fa88ffc9def027031335fa0270fc4080506cd415990014364e3a98b9d2e8c58a29524'
'SKIP'
- 'efd624f4d47e705058a3f29159aadfe859c17657f6db818df5376caac0dae911a6fb7e94576b1e331136ea59c09577f82eb30d520a03c5adc0c14df342be6417'
+ '9dd0efc4697348b530711c20d01a68daa96f259e12dbb0250d7f7739d1ee83b27b77b83d2ab27b1ed5963db694f911ee2ef94f7b68c1f62e21bf9cf30b2d9ee7'
+ 'db64b425139c107c69f44624901ae50b5e604d4c9fdfe84f78c298f8ed7a7739033a72ec678c5c3c0e82e59809d97799d0c25f96c64ef5ae79910cb890fc7bfb'
'2f9195675270d79d735a3aaec25887c2f80b76eae98be8fcc5fd59ab71d925c5ee20ec5e2a015deb68b61bc2cc7f56f546a22cb96ee038e2e24c2c9dd5c3f79f'
- 'd8297e09f552a2d6bb24c2ba10481fd2b407057f3b24278e72a89233473460d339c83838791989773623178b5af80588fb4c484da2931f1040e313cce7ceca00'
+ 'ee2176084665f1a5f1999157cb128c8c68c113b5d22c4d72bec689123493d7a9b246e1c7cff7d6ff4bba8d5c5624b4dc75f2274db941e9b3d352e41fbad86927'
+ '1e3a9aadc3e944afd9601457f69218fd4cf61badabed6924622bce3273c2a95602fc6aab00c1399767f5115d3fbecde391b553acc259c817f8d6b29a18b1f8ad'
+ 'a5c4d1bf3b15e3ee2491f75485627ebf1a9f6759f38798c08fcd09bf90b40fed997d7f14190809f4e676907f8a1c9150e3de2da856c8b92e022d3250a86040fe'
'7f1eb5938472f57748216bd00e0c875feab99fc1c5cb89babfea467ee30ca5c8e9fc5a691efe2e602bef1ea79820c5383822d7cec354b48d23321ccda8ee8127'
'b6ef77035611139fa9a6d5b8d30570e2781bb4da483bb569884b0bd0129b62e0b82a5a6776fefe43fee801c70d39de1ea4d4c177f7cedd5ac135e3c64f7b895a'
'fde132f3705d908e6f2147c78a2193289916d72304ca5efa2229d79fc3e57a857314ce94e71425caef2f7f7b6cf87f05ef86335dc8bd4be78e7035afe608005a')
@@ -76,7 +82,10 @@ prepare() {
# Hotfixes
echo "Applying hotfixes"
patch -p1 -i ../0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
- patch -p1 -i ../0002-HID-quirks-Add-Apple-Magic-Trackpad-2-to-hid_have_special_driver-list.patch
+ patch -p1 -i ../0002-Bluetooth-btusb-Some-Qualcomm-Bluetooth-adapters-stop-working.patch
+ patch -p1 -i ../0003-Revert-drm-amd-display-reuse-current-context-instead-of-recreating-one.patch
+ patch -p1 -i ../0004-drm-amdgpu-fix-shutdown-with-s0ix.patch
+ patch -p1 -i ../sphinx-workaround.patch
# graysky gcc patch
@@ -138,7 +147,7 @@ prepare() {
build() {
cd $_srcname
make all
- #make htmldocs
+ make htmldocs
}
_package() {
@@ -248,27 +257,26 @@ _package-headers() {
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
}
-#_package-docs() {
-# pkgdesc="Documentation for the $pkgdesc kernel"
-#
-# cd $_srcname
-# local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
-#
-# echo "Installing documentation..."
-# local src dst
-# while read -rd '' src; do
-# dst="${src#Documentation/}"
-# dst="$builddir/Documentation/${dst#output/}"
-# install -Dm644 "$src" "$dst"
-# done < <(find Documentation -name '.*' -prune -o ! -type d -print0)
-#
-# echo "Adding symlink..."
-# mkdir -p "$pkgdir/usr/share/doc"
-# ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"
-#}
-
-#pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs")
-pkgname=("$pkgbase" "$pkgbase-headers")
+_package-docs() {
+ pkgdesc="Documentation for the $pkgdesc kernel"
+
+ cd $_srcname
+ local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
+
+ echo "Installing documentation..."
+ local src dst
+ while read -rd '' src; do
+ dst="${src#Documentation/}"
+ dst="$builddir/Documentation/${dst#output/}"
+ install -Dm644 "$src" "$dst"
+ done < <(find Documentation -name '.*' -prune -o ! -type d -print0)
+
+ echo "Adding symlink..."
+ mkdir -p "$pkgdir/usr/share/doc"
+ ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"
+}
+
+pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs")
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")