Skip to content

Commit

Permalink
linux-cachyos-hardened 6.9.1-1
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jung <[email protected]>
  • Loading branch information
ptr1337 committed May 22, 2024
1 parent 9d4f0d1 commit 27e4bd4
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 128 deletions.
22 changes: 11 additions & 11 deletions linux-cachyos-hardened/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = linux-cachyos-hardened
pkgdesc = Linux BORE scheduler and hardened Kernel by CachyOS with other patches and improvements
pkgver = 6.8.10
pkgrel = 3
pkgver = 6.9.1
pkgrel = 1
url = https://github.com/CachyOS/linux-cachyos
arch = x86_64
arch = x86_64_v3
Expand All @@ -24,18 +24,18 @@ pkgbase = linux-cachyos-hardened
options = !strip
options = !debug
options = !lto
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.10.tar.xz
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.9.1.tar.xz
source = config
source = auto-cpu-optimization.sh
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.8/all/0001-cachyos-base-all.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.8/sched/0001-bore-cachy.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.8/misc/0001-hardened.patch
b2sums = 1e3fba4cdbe1c3d4f0ea56f8e54242e0276a3ae47e5dc97152d0afd7042a02ae9b57d6808ed8482358eb244eecc73ed41f7411ab50d4b462fc776b68c293c30a
b2sums = d741eaffda855a073fb8b67a93b9d79702f7c5f24038d2d6f7dd49f315e86547cb0798ae907b561d812d060b3dafa1e7a6520d76f6703a1449730c8f687ad705
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.9/all/0001-cachyos-base-all.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.9/sched/0001-bore-cachy.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.9/misc/0001-hardened.patch
b2sums = 388af1d13e78a424f72a961697f4b0b6a234e54ce1e4a2532fc73717301e048c6f4a6251b6e3c4541179d1382566c3f411baa6883818a10d178ef27d036b5379
b2sums = 5ac81241f7e9498be2a486355df594347ed51a0955764693a2f1e73ff46c6ff0e15f9a0cee725c3eed4ab6effd05c290c616050243b96fcbe82e73181fbd42c4
b2sums = 43ef7a347878592740d9eb23b40a56083fa747f7700fa1e2c6d039d660c0b876d99bf1a3160e15d041fb13d45906cdb5defef034d4d0ae429911864239c94d8d
b2sums = 633a543935badc6d0a32de284c1da1fdf17162692d15ba218f4e422e523cfda22e6e672f014d873c4c12649f74054fbf1d56264f524b76aaa359c39d023bf406
b2sums = b768b9ceae2eb07964e4cde7a6894744a14eb6f5f2ebd68353035085020c1cdbc4151a8d28d6c70f27a780f31297589d00bf0fdf7faca00b436dfe631608419c
b2sums = ad8f9e901641dd97d0d76524efb10eb2a37947615e60d9b290a100ed25da08f3d47b6fc9d8e62b55aa8b7ed54c83e9cabbe145e56cd523488ed21f020849c786
b2sums = 5704297c29cba82d1fcf6c15651513cb6226447720593c85ed3fb0cee1ab341fb59c38cd18fa3964e6b4407c158393b382a2582a0d9ca605600766fa75eb8fc4
b2sums = 4e57dfcf72b57fb049b6ff3b3b842704b0025df3f816ac9c01d6a6fc68e31813bcc400bbd6a713c5fdd939657e35fde074ef3234848f15c7e58651e46d285d7e
b2sums = 37c35e6dd5d0299faf9d788e50e6bfed0b4650ab4702ec93d6bd3caca54c58f103836f43f65c33746dfe51c1f1c837e1ef8a275504f9eaf6b6cd5d5e19a9beb4

pkgname = linux-cachyos-hardened
pkgdesc = The Linux BORE scheduler and hardened Kernel by CachyOS with other patches and improvements kernel and modules
Expand Down
60 changes: 11 additions & 49 deletions linux-cachyos-hardened/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _cachy_config=${_cachy_config-y}
# ATTENTION - only one of the following values can be selected:
# 'bore' - select 'Burst-Oriented Response Enhancer'
# 'hardened' - select 'BORE Scheduler hardened' ## kernel with hardened config and hardening patches with the bore scheduler
# 'cachyos' - select 'EEVDF-BORE Variant Scheduler'
# 'cachyos' - select 'Sched-Ext Scheduler Framework Variant Scheduler with BORE Scheduler'
# 'eevdf' - select 'EEVDF Scheduler'
# 'rt' - select EEVDF, but includes a series of realtime patches
# 'rt-bore' - select Burst-Oriented Response Enhancer, but includes a series of realtime patches
Expand Down Expand Up @@ -82,20 +82,6 @@ _tickrate=${_tickrate-full}
## Choose between full(low-latency), voluntary or server
_preempt=${_preempt-full}

### Enable multigenerational LRU
# ATTENTION - one of three predefined values should be selected!
# 'standard' - enable multigenerational LRU
# 'stats' - enable multigenerational LRU with stats
# 'none' - disable multigenerational LRU
_lru_config=${_lru_config-standard}

### Enable per-VMA locking
# ATTENTION - one of three predefined values should be selected!
# 'standard' - enable per-VMA locking
# 'stats' - enable per-VMA locking with stats
# 'none' - disable per-VMA locking
_vma_config=${_vma_config-standard}

### Transparent Hugepages
# ATTENTION - one of two predefined values should be selected!
# 'always' - always enable THP
Expand All @@ -115,9 +101,9 @@ _damon=${_damon-}
# - "native_intel" (use compiler autodetection and will prompt for P6_NOPS - Selecting your arch manually in the list above is recommended instead of this option)
# - "generic" (kernel's default - to share the package between machines with different CPU µarch as long as they are x86-64)
#
# Or use the _use_auto_optimization with _use_auto_optimization=y
_processor_opt=${_processor_opt-}

# This does automatically detect your supported CPU and optimizes for it
_use_auto_optimization=${_use_auto_optimization-y}

# Clang LTO mode, only available with the "llvm" compiler - options are "none", "full" or "thin".
Expand Down Expand Up @@ -163,8 +149,8 @@ elif [ -n "$_use_llvm_lto" ] || [[ "$_use_lto_suffix" = "n" ]]; then
pkgsuffix=cachyos-${_cpusched}
pkgbase=linux-$pkgsuffix
fi
_major=6.8
_minor=10
_major=6.9
_minor=1
#_minorc=$((_minor+1))
#_rcver=rc8
pkgver=${_major}.${_minor}
Expand All @@ -174,7 +160,7 @@ _stable=${_major}.${_minor}
_srcname=linux-${_stable}
#_srcname=linux-${_major}
pkgdesc='Linux BORE scheduler and hardened Kernel by CachyOS with other patches and improvements'
pkgrel=3
pkgrel=1
_kernver=$pkgver-$pkgrel
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
Expand Down Expand Up @@ -227,7 +213,7 @@ fi

## List of CachyOS schedulers
case "$_cpusched" in
cachyos) ## SCHED-EXT + BORE Scheduler
cachyos) # CachyOS Scheduler (Sched-ext + BORE + Cachy Sauce)
source+=("${_patchsource}/sched/0001-sched-ext.patch"
"${_patchsource}/sched/0001-bore-cachy-ext.patch");;
bore) ## BORE Scheduler
Expand Down Expand Up @@ -433,30 +419,6 @@ prepare() {
--set-str DEFAULT_TCP_CONG bbr
fi

### Select LRU config
[ -z "$_lru_config" ] && _die "The value is empty. Choose the correct one again."

case "$_lru_config" in
standard) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -d LRU_GEN_STATS;;
stats) scripts/config -e LRU_GEN -e LRU_GEN_ENABLED -e LRU_GEN_STATS;;
none) scripts/config -d LRU_GEN;;
*) _die "The value '$_lru_config' is invalid. Choose the correct one again.";;
esac

echo "Selecting '$_lru_config' LRU_GEN config..."

### Select VMA config
[ -z "$_vma_config" ] && _die "The value is empty. Choose the correct one again."

case "$_vma_config" in
standard) scripts/config -e PER_VMA_LOCK -d PER_VMA_LOCK_STATS;;
stats) scripts/config -e PER_VMA_LOCK -e PER_VMA_LOCK_STATS;;
none) scripts/config -d PER_VMA_LOCK;;
*) _die "The value '$_vma_config' is invalid. Choose the correct one again.";;
esac

echo "Selecting '$_vma_config' PER_VMA_LOCK config..."

### Select THP
[ -z "$_hugepage" ] && _die "The value is empty. Choose the correct one again."

Expand Down Expand Up @@ -763,9 +725,9 @@ for _p in "${pkgname[@]}"; do
}"
done

b2sums=('1e3fba4cdbe1c3d4f0ea56f8e54242e0276a3ae47e5dc97152d0afd7042a02ae9b57d6808ed8482358eb244eecc73ed41f7411ab50d4b462fc776b68c293c30a'
'd741eaffda855a073fb8b67a93b9d79702f7c5f24038d2d6f7dd49f315e86547cb0798ae907b561d812d060b3dafa1e7a6520d76f6703a1449730c8f687ad705'
b2sums=('388af1d13e78a424f72a961697f4b0b6a234e54ce1e4a2532fc73717301e048c6f4a6251b6e3c4541179d1382566c3f411baa6883818a10d178ef27d036b5379'
'5ac81241f7e9498be2a486355df594347ed51a0955764693a2f1e73ff46c6ff0e15f9a0cee725c3eed4ab6effd05c290c616050243b96fcbe82e73181fbd42c4'
'43ef7a347878592740d9eb23b40a56083fa747f7700fa1e2c6d039d660c0b876d99bf1a3160e15d041fb13d45906cdb5defef034d4d0ae429911864239c94d8d'
'633a543935badc6d0a32de284c1da1fdf17162692d15ba218f4e422e523cfda22e6e672f014d873c4c12649f74054fbf1d56264f524b76aaa359c39d023bf406'
'b768b9ceae2eb07964e4cde7a6894744a14eb6f5f2ebd68353035085020c1cdbc4151a8d28d6c70f27a780f31297589d00bf0fdf7faca00b436dfe631608419c'
'ad8f9e901641dd97d0d76524efb10eb2a37947615e60d9b290a100ed25da08f3d47b6fc9d8e62b55aa8b7ed54c83e9cabbe145e56cd523488ed21f020849c786')
'5704297c29cba82d1fcf6c15651513cb6226447720593c85ed3fb0cee1ab341fb59c38cd18fa3964e6b4407c158393b382a2582a0d9ca605600766fa75eb8fc4'
'4e57dfcf72b57fb049b6ff3b3b842704b0025df3f816ac9c01d6a6fc68e31813bcc400bbd6a713c5fdd939657e35fde074ef3234848f15c7e58651e46d285d7e'
'37c35e6dd5d0299faf9d788e50e6bfed0b4650ab4702ec93d6bd3caca54c58f103836f43f65c33746dfe51c1f1c837e1ef8a275504f9eaf6b6cd5d5e19a9beb4')
Loading

0 comments on commit 27e4bd4

Please sign in to comment.