Skip to content

Archlinux Kernel based on different schedulers and some other performance improvements.

fix: refactor kernel uname into variable (#270)

Vladislav Nepogodin4b86f35be467
diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD
index f4ea273d..1d1a4c8b 100644
--- a/linux-cachyos-bore/PKGBUILD
+++ b/linux-cachyos-bore/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux BORE + Cachy Sauce scheduler Kernel by CachyOS with other patches and improvements'
pkgrel=2
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -535,7 +536,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -550,7 +551,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -566,7 +567,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILD
index 8a3e9f8c..6b6de108 100644
--- a/linux-cachyos-deckify/PKGBUILD
+++ b/linux-cachyos-deckify/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux SCHED-EXT + Cachy Sauce + BORE + Deckify Patches Kernel by CachyOS with other patches and improvements'
pkgrel=1
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -537,7 +538,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -552,7 +553,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -568,7 +569,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos-echo/PKGBUILD b/linux-cachyos-echo/PKGBUILD
index 053008e9..ea97d9d2 100644
--- a/linux-cachyos-echo/PKGBUILD
+++ b/linux-cachyos-echo/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux ECHO scheduler + Cachy Sauce Kernel by CachyOS with other patches and improvements'
pkgrel=2
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -535,7 +536,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -550,7 +551,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -566,7 +567,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILD
index 61cd4d67..3f3f8ba2 100644
--- a/linux-cachyos-eevdf/PKGBUILD
+++ b/linux-cachyos-eevdf/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux EEVDF scheduler + Cachy Sauce Kernel by CachyOS with other patches and improvements'
pkgrel=2
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -535,7 +536,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -550,7 +551,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -566,7 +567,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD
index d407be8d..bb534886 100644
--- a/linux-cachyos-hardened/PKGBUILD
+++ b/linux-cachyos-hardened/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux BORE scheduler and hardened Kernel by CachyOS with other patches and improvements'
pkgrel=1
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -534,7 +535,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -549,7 +550,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -565,7 +566,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILD
index d8f1796a..6e25df90 100644
--- a/linux-cachyos-lts/PKGBUILD
+++ b/linux-cachyos-lts/PKGBUILD
@@ -185,6 +185,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux EEVDF-BORE scheduler Kernel by CachyOS with other patches and improvements'
pkgrel=1
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -603,7 +604,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -618,7 +619,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -634,7 +635,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 4102ea24..0e85e2ab 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux SCHED-EXT + Cachy Sauce Kernel by CachyOS with other patches and improvements'
pkgrel=2
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -535,7 +536,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -550,7 +551,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -566,7 +567,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILD
index 0a34115a..e3b153ed 100644
--- a/linux-cachyos-rt-bore/PKGBUILD
+++ b/linux-cachyos-rt-bore/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux BORE-RT + Cachy Sauce Kernel by CachyOS with other patches and improvements'
pkgrel=2
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -535,7 +536,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -550,7 +551,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -566,7 +567,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILD
index adc89c42..7e2e79c3 100644
--- a/linux-cachyos-sched-ext/PKGBUILD
+++ b/linux-cachyos-sched-ext/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux SCHED-EXT + Cachy Sauce Kernel by CachyOS with other patches and improvements'
pkgrel=2
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -535,7 +536,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -550,7 +551,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -566,7 +567,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD
index 95462a9e..95b87723 100644
--- a/linux-cachyos-server/PKGBUILD
+++ b/linux-cachyos-server/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux EEVDF scheduler Kernel by CachyOS targeted for Servers workloads'
pkgrel=2
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -535,7 +536,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -550,7 +551,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -566,7 +567,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \
diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD
index 9aa2d808..98e0371b 100644
--- a/linux-cachyos/PKGBUILD
+++ b/linux-cachyos/PKGBUILD
@@ -165,6 +165,7 @@ _srcname=linux-${_stable}
pkgdesc='Linux SCHED-EXT + BORE + Cachy Sauce Kernel by CachyOS with other patches and improvements'
pkgrel=2
_kernver=$pkgver-$pkgrel
+_kernuname="${pkgver}-${pkgsuffix}"
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
license=('GPL-2.0-only')
@@ -535,7 +536,7 @@ build() {
if [ -n "$_build_nvidia" ]; then
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES'
SYSSRC="${srcdir}/${_srcname}"
@@ -550,7 +551,7 @@ build() {
if [ -n "$_build_nvidia_open" ]; then
cd "${srcdir}/${_nv_open_pkg}"
local MODULE_FLAGS=(
- KERNEL_UNAME="${pkgver}-${pkgsuffix}"
+ KERNEL_UNAME="${_kernuname}"
IGNORE_PREEMPT_RT_PRESENCE=1
IGNORE_CC_MISMATCH=yes
SYSSRC="${srcdir}/${_srcname}"
@@ -566,7 +567,7 @@ build() {
[ "$_use_llvm_lto" != "none" ] && CONFIGURE_FLAGS+=("KERNEL_LLVM=1")
./autogen.sh
- sed -i "s|\$(uname -r)|${pkgver}-${pkgsuffix}|g" configure
+ sed -i "s|\$(uname -r)|${_kernuname}|g" configure
./configure ${CONFIGURE_FLAGS[*]} --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
--with-udevdir=/lib/udev --libexecdir=/usr/lib/zfs --with-config=kernel \