This commit is contained in:
P. Jung 2021-10-17 10:08:56 +00:00
parent d16b39bb04
commit 3a3a7c5b33
No known key found for this signature in database
GPG Key ID: AFC052D06215E148
2 changed files with 334 additions and 327 deletions

View File

@ -1,7 +1,7 @@
pkgbase = linux-cachyos
pkgdesc = Linux cfs scheduler Kernel by CachyOS and with some other patches and other improvements
pkgver = 5.14.12
pkgrel = 2
pkgver = 5.14.13
pkgrel = 1
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
@ -19,7 +19,7 @@ pkgbase = linux-cachyos
makedepends = tar
makedepends = xz
options = !strip
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.14.12.tar.xz
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.14.13.tar.xz
source = config
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/0001-CK-TIMER.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/arch-patches-v10/0001-arch-patches.patch
@ -51,7 +51,7 @@ pkgbase = linux-cachyos
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/0001-winesync.patch
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14/0001-v4l2loopback.patch
source = auto-cpu-optimization.sh
md5sums = a52286fe206a3f7664ca5a6c5995b9ed
md5sums = dd8c7efa62d69eb9a50806f2b0d6da01
md5sums = 6918c6961e213ae5ee0c9d374bb9a06b
md5sums = 04c5865e765e07cff0649824c2a8d810
md5sums = 581faf85cd625c41bbdd0cadbd0e451e

View File

@ -108,12 +108,12 @@ _makenconfig=
if [ -n "$_use_llvm_lto" ]; then
pkgbase=linux-cachyos-lto
pkgbase=linux-cachyos-lto
else
pkgbase=linux-cachyos
pkgbase=linux-cachyos
fi
pkgver=5.14.12
pkgrel=2
pkgver=5.14.13
pkgrel=1
arch=(x86_64 x86_64_v3)
pkgdesc='Linux cfs scheduler Kernel by CachyOS and with some other patches and other improvements'
_gittag=v${pkgver%.*}-${pkgver##*.}
@ -122,14 +122,13 @@ url="https://github.com/CachyOS/linux-cachyos"
license=('GPL2')
options=('!strip')
makedepends=('kmod' 'bc' 'libelf' 'python-sphinx' 'python-sphinx_rtd_theme'
'graphviz' 'imagemagick' 'pahole' 'cpio' 'perl' 'tar' 'xz')
'graphviz' 'imagemagick' 'pahole' 'cpio' 'perl' 'tar' 'xz')
if [ -n "$_use_llvm_lto" ]; then
makedepends+=(clang llvm lld python)
makedepends+=(clang llvm lld python)
fi
_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.14"
source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver}.tar.xz"
"config"
# "${_patchsource}/arch-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch"
"${_patchsource}/0001-CK-TIMER.patch"
"${_patchsource}/arch-patches-v10/0001-arch-patches.patch"
"${_patchsource}/0001-preempt-hz-cfs.patch"
@ -160,22 +159,22 @@ source=("https://cdn.kernel.org/pub/linux/kernel/v${pkgver:0:1}.x/linux-${pkgver
"${_patchsource}/0001-winesync.patch"
"${_patchsource}/0001-v4l2loopback.patch"
"auto-cpu-optimization.sh"
)
if [ -n "$_use_cfi" ]; then
source+=("${_patchsource}/0002-clang-cfi.patch")
fi
)
if [ -n "$_use_cfi" ]; then
source+=("${_patchsource}/0002-clang-cfi.patch")
fi
if [ -n "$_use_pgo" ]; then
source+=("${_patchsource}/0001-PGO.patch")
fi
if [ -n "$_use_pgo" ]; then
source+=("${_patchsource}/0001-PGO.patch")
fi
if [ -n "$_use_llvm_lto" ]; then
if [ -n "$_use_llvm_lto" ]; then
BUILD_FLAGS=(
LLVM=1
LLVM_IAS=1
)
fi
fi
export KBUILD_BUILD_HOST=archlinux
export KBUILD_BUILD_USER=$pkgbase
@ -250,6 +249,14 @@ prepare() {
scripts/config --set-val CONFIG_HZ 750
fi
### Optionally set tickrate to 750HZ
if [ -n "$_750_HZ_ticks" ]; then
echo "Setting tick rate to 750HZ..."
scripts/config --disable CONFIG_HZ_300
scripts/config --enable CONFIG_HZ_750
scripts/config --set-val CONFIG_HZ 750
fi
### Optionally set tickrate to 500HZ
if [ -n "$_500_HZ_ticks" ]; then
echo "Setting tick rate to 500HZ..."
@ -604,7 +611,7 @@ _package-headers() {
}
md5sums=('a52286fe206a3f7664ca5a6c5995b9ed'
md5sums=('dd8c7efa62d69eb9a50806f2b0d6da01'
'6918c6961e213ae5ee0c9d374bb9a06b'
'04c5865e765e07cff0649824c2a8d810'
'581faf85cd625c41bbdd0cadbd0e451e'
@ -637,9 +644,9 @@ md5sums=('a52286fe206a3f7664ca5a6c5995b9ed'
'95eb4457f95f3f8dd153983612ee65c0'
'21c98f19e883879dd3336c1fa143fd31')
pkgname=("$pkgbase" "$pkgbase-headers" )
for _p in "${pkgname[@]}"; do
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")
_package${_p#$pkgbase}
}"
done
done