summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD61
1 files changed, 24 insertions, 37 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f451c73a8c5..35e638b1f08 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,9 +6,9 @@
# last/latest "longterm maintenance" kernel releases
# https://www.kernel.org/category/releases.html
-# 4.19 Greg Kroah-Hartman 2018-10-22 2020-12
-_LLL_VER=4.19
-_LLL_SUBVER=81
+# 5.4 Greg Kroah-Hartman & Sasha Levin 2019-11-24 Dec, 2021
+_LLL_VER=5.4
+_LLL_SUBVER=6
# NUMA is optimized for multi-socket motherboards.
# A single multi-core CPU can actually run slower with NUMA enabled.
@@ -17,21 +17,22 @@ _LLL_SUBVER=81
_NUMA_disable=y
# Add ck patch set
-# http://ck.kolivas.org/patches/4.0/
+# http://ck.kolivas.org/patches/5.0/
# https://wiki.archlinux.org/index.php/Linux-ck
_CK_VER=1
-_CK_PATCH="http://ck.kolivas.org/patches/4.0/${_LLL_VER}/${_LLL_VER}-ck${_CK_VER}/patch-${_LLL_VER}-ck${_CK_VER}.xz"
+_CK_PATCH="http://ck.kolivas.org/patches/5.0/${_LLL_VER}/${_LLL_VER}-ck${_CK_VER}/patch-${_LLL_VER}-ck${_CK_VER}.xz"
# Ultra Kernel Samepage Merging
_UKSM_VER=0.1.2.6
-_UKSM_COMMIT=c4fc85e4e513f97c38806358c472cc45270d936f
-_UKSM_PATCH="https://raw.githubusercontent.com/dolohow/uksm/${_UKSM_COMMIT}/uksm-${_LLL_VER}.patch"
+_UKSM_COMMIT=150e27c4e7f66e4519c89573305eca8c42091f4d
+_UKSM_PATCH="https://raw.githubusercontent.com/dolohow/uksm/${_UKSM_COMMIT}/v5.x/uksm-${_LLL_VER}.patch"
# CJKTTY patch
# https://github.com/Gentoo-zh/linux-cjktty
-# https://github.com/torvalds/linux/compare/v4.9...Gentoo-zh:4.9-utf8
-_CJKTTY_PATCH_FILE=linux-cjktty-${_LLL_VER}.patch
-_CJKTTY_PATCH_URL="https://github.com/torvalds/linux/compare/v${_LLL_VER}...Gentoo-zh:${_LLL_VER}-utf8.patch"
+# https://github.com/torvalds/linux/compare/v5.3...Gentoo-zh:5.3-utf8
+_CJKTTY_LLL_VER=5.3
+_CJKTTY_PATCH_FILE=linux-cjktty-${_CJKTTY_LLL_VER}.patch
+_CJKTTY_PATCH_URL="https://github.com/torvalds/linux/compare/v${_CJKTTY_LLL_VER}...Gentoo-zh:${_CJKTTY_LLL_VER}-utf8.patch"
_CJKTTY_PATCH="${_CJKTTY_PATCH_FILE}::${_CJKTTY_PATCH_URL}"
_PATHSET_DESC="ck${_CK_VER} uksm-${_UKSM_VER} and cjktty"
@@ -47,17 +48,12 @@ license=('GPL2')
makedepends=('xmlto' 'kmod' 'inetutils' 'bc' 'libelf' 'python-sphinx' 'graphviz')
options=('!strip')
source=(
- "https://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.xz"
- "https://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.sign"
- "https://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.xz"
- #"https://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.sign"
+ "https://www.kernel.org/pub/linux/kernel/v5.x/${_srcname}.tar.xz"
+ "https://www.kernel.org/pub/linux/kernel/v5.x/${_srcname}.tar.sign"
+ "https://www.kernel.org/pub/linux/kernel/v5.x/patch-${pkgver}.xz"
+ #"https://www.kernel.org/pub/linux/kernel/v5.x/patch-${pkgver}.sign"
${_CK_PATCH}
- 'ck-patch-for-4.19.7+.patch'
- 'ck-patch-for-4.19.33+.patch'
- 'ck-patch-for-4.19.34+.patch'
- 'ck-patch-for-4.19.76+.patch'
${_UKSM_PATCH}
- 'uksm-patch-for-4.19.37+.patch'
${_CJKTTY_PATCH}
'legacy-wireless-ioctls-4.9+.patch'
'config' # the main kernel config file
@@ -70,19 +66,14 @@ validpgpkeys=(
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman
)
# https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc
-sha256sums=('0c68f5655528aed4f99dae71a5b259edc93239fa899e2df79c055275c21749a1'
+sha256sums=('bf338980b1670bca287f9994b7441c2361907635879169c64ae78364efc5f491'
'SKIP'
- '42c2ae8c4178ca27dd7e5da55db3b4f078091b8d22d7d31d82064f4ddc86d73b'
- '77863d16a08e1b3c726b6c965f1bb7c672bd7317776810121062b73f9ea26780'
- '58b81803f8f81d18bef9fe3c5101851ca770ca103da114b8d1460ed74d920efa'
- 'fb338209c3b3d00ae2e3706eb3b874d5d9391f84120ff5197f95824be76f86e1'
- '0aafe8360e9a3b9b801ca1327fbfd15b950840d9ddaccd3e7bfc71749e9e3a0c'
- '3d8b92c013cf5deaa7b1c7f9c04b705efb3405eababb986aef6abcc424519fee'
- 'ec617b1718e6cadfad02c75aca9c4b0e6b6f944bc1a93b7e4d82c847c04b5653'
- 'fe32296cad05b08b34369ac49a226ae9591890fb106d0c6bc5b8f690f8d553b3'
- '72be48252f30bc644071bbce2607b773f789c6f19e281b89ab7e16a3d8161ed3'
+ '80853920a753762e058e35b754d3e0d16ec2fb485dfb84cc40fbdba383a8da17'
+ 'f445eea4d0ec2015a25f1ad625c848f4f2252099795966fa4105e0aa29674c5c'
+ '81d34bf02e771a126af5cb382d44a86dcc759c88b7c89fc7e5b7737731b9130e'
+ '08b2eb809d889f18e8a0da1179c0ecc63ba37313a46c908e5f4c794c528fa63f'
'edfb9939840b8710d6ee0385a8e968609eef348295465bb087744c18ed3496e0'
- '2eb7ec27f3dea53b0aac9ad665195df63e03598a89b6dd1c00af8d2738be88df'
+ '7ce388e429d8df479a721285e445e116c5ee41e3126a702862e59056460b655e'
'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21'
'75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919'
'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')
@@ -103,15 +94,10 @@ prepare() {
# Patch source with ck patch set
msg "Patching source with ck${_CK_VER} including BFS"
cp "../patch-${_LLL_VER}-ck${_CK_VER}" "../patch-${_LLL_VER}.${_LLL_SUBVER}-ck${_CK_VER}"
- patch -i ../ck-patch-for-4.19.7+.patch "../patch-${_LLL_VER}.${_LLL_SUBVER}-ck${_CK_VER}"
- patch -i ../ck-patch-for-4.19.33+.patch "../patch-${_LLL_VER}.${_LLL_SUBVER}-ck${_CK_VER}"
- patch -i ../ck-patch-for-4.19.34+.patch "../patch-${_LLL_VER}.${_LLL_SUBVER}-ck${_CK_VER}"
- patch -i ../ck-patch-for-4.19.76+.patch "../patch-${_LLL_VER}.${_LLL_SUBVER}-ck${_CK_VER}"
patch -Np1 -i "../patch-${_LLL_VER}.${_LLL_SUBVER}-ck${_CK_VER}"
msg "Patching source with uksm ${_UKSM_VER} patches"
cp "../uksm-${_LLL_VER}.patch" "../uksm-${_LLL_VER}.${_LLL_SUBVER}.patch"
- patch -i ../uksm-patch-for-4.19.37+.patch "../uksm-${_LLL_VER}.${_LLL_SUBVER}.patch"
patch -Np1 -i "../uksm-${_LLL_VER}.${_LLL_SUBVER}.patch"
msg "Patching source with Gentoo-zh/linux-cjktty patches"
@@ -173,8 +159,9 @@ build() {
_package() {
pkgdesc="The ${pkgbase/linux/Linux} kernel and modules with the ${_PATHSET_DESC} patchsets"
[ "${pkgbase}" = "linux" ] && groups=('base')
- depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio')
- optdepends=('crda: to set the correct wireless channels of your country')
+ depends=('coreutils' 'kmod' 'mkinitcpio')
+ optdepends=('crda: to set the correct wireless channels of your country'
+ 'linux-firmware: firmware images needed for some devices')
backup=("etc/mkinitcpio.d/${pkgbase}.preset")
install=linux.install