diff options
author | Peter Jung | 2022-06-17 15:32:19 +0200 |
---|---|---|
committer | Peter Jung | 2022-06-17 15:32:19 +0200 |
commit | 44567159f5fe9e1cd63cb91577c5b82e0e8c4f31 (patch) | |
tree | 361d4fc962c499b22af0daf8b9470d6dd5b3238c /PKGBUILD | |
parent | 586af957a6e0294c979280d1e03fb8fef380f81d (diff) | |
download | aur-44567159f5fe9e1cd63cb91577c5b82e0e8c4f31.tar.gz |
5.18.5-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 84 |
1 files changed, 39 insertions, 45 deletions
@@ -45,7 +45,7 @@ _localmodcfg= _use_current= ### Enable KBUILD_CFLAGS -O3 -_cc_harder= +_cc_harder=y ### Set performance governor as default _per_gov=y @@ -73,7 +73,7 @@ _kyber_disable=y _lru_enable=y ## Enable DAMON -_damon= +_damon=y ## enable SPECULATIVE_PAGE_FAULT _spf_enable=y @@ -123,6 +123,9 @@ _use_kcfi= # Build the zfs module builtin in to the kernel _build_zfs= +# Enable bcachefs +_bcachefs= + if [ -n "$_use_llvm_lto" ]; then pkgsuffix=${_cpusched}-lto pkgbase=linux-$pkgsuffix @@ -132,7 +135,7 @@ else pkgbase=linux-$pkgsuffix fi _major=5.18 -_minor=3 +_minor=5 #_minorc=$((_minor+1)) #_rcver=rc8 pkgver=${_major}.${_minor} @@ -143,7 +146,7 @@ _srcname=linux-${_stable} #_srcname=linux-${_major} arch=(x86_64 x86_64_v3) pkgdesc='Linux TT scheduler Kernel by CachyOS with other patches and improvements' -pkgrel=2 +pkgrel=1 _kernver=$pkgver-$pkgrel arch=('x86_64' 'x86_64_v3') url="https://github.com/CachyOS/linux-cachyos" @@ -162,9 +165,11 @@ fi _patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}" source=( "https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz" -"config") + "config" + "${_patchsource}/0001-cachy.patch" +) if [ -n "$_build_zfs" ]; then - source+=("git+https://github.com/ptr1337/zfs.git#commit=8941b63a931ca6fdc6d0ab46c037540569ba04a4") + source+=("git+https://github.com/ptr1337/zfs.git#commit=543b84c329dfc73d73293447b7dbc4d0755cb901") fi if [ "$_cpusched" = "bmq" ]; then source+=("${_patchsource}/sched/0001-prjc.patch") @@ -172,18 +177,14 @@ fi if [ "$_cpusched" = "pds" ]; then source+=("${_patchsource}/sched/0001-prjc.patch") fi +if [ "$_cpusched" = "bore" ]; then + source+=("${_patchsource}/sched/0001-bore-sched.patch") +fi if [ "$_cpusched" = "cacule" ]; then - source+=("${_patchsource}/sched/0001-cacULE-5.18.patch") + source+=("${_patchsource}/sched/0001-cacULE-5.18-migrate.patch") fi if [ "$_cpusched" = "cacule-rdb" ]; then - source+=("${_patchsource}/sched/0001-cacULE-5.18.patch") -fi -if [ "$_cpusched" = "bore" ]; then - source+=("${_patchsource}/sched/0001-bore-sched.patch" - "${_patchsource}/0001-migrate.patch") -fi -if [ "$_cpusched" = "cfs" ]; then - source+=("${_patchsource}/0001-migrate.patch") + source+=("${_patchsource}/sched/0001-cacULE-5.18-migrate.patch") fi if [ "$_cpusched" = "tt" ]; then source+=("${_patchsource}/sched/0001-tt-5.18.patch") @@ -191,30 +192,23 @@ fi if [ "$_cpusched" = "hardened" ]; then source+=( "${_patchsource}/sched/0001-bore-sched.patch" - "${_patchsource}/0001-migrate.patch" "${_patchsource}/0001-hardening.patch" - "${_patchsource}/0001-hardened.patch") + "${_patchsource}/0001-hardened.patch") fi source+=( "${_patchsource}/0001-amd-perf.patch" - "${_patchsource}/0001-arch.patch" "${_patchsource}/0001-bbr2.patch" - "${_patchsource}/0001-cachy.patch" "${_patchsource}/0001-clearlinux.patch" - "${_patchsource}/0001-cpu.patch" "${_patchsource}/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch" "${_patchsource}/0001-fixes.patch" "${_patchsource}/0001-fs-patches.patch" "${_patchsource}/0001-futex-winesync.patch" "${_patchsource}/0001-hwmon.patch" + "${_patchsource}/0001-kbuild.patch" "${_patchsource}/0001-lrng.patch" "${_patchsource}/0001-lru-le9-spf.patch" - "${_patchsource}/0001-ksm.patch" - "${_patchsource}/0001-zram-entropy-calculation.patch" - "${_patchsource}/0001-PCI-Allow-BAR-movement-during-boot-and-hotplug.patch" "auto-cpu-optimization.sh" ) - if [ -n "$_use_kcfi" ]; then source+=("${_patchsource}/0001-kcfi.patch") depends+=(clang llvm lld python) @@ -225,6 +219,9 @@ if [ -n "$_use_kcfi" ]; then ) fi +if [ -n "$_bcachefs" ]; then + source+=("${_patchsource}/0001-bcachefs.patch") +fi export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" @@ -492,7 +489,8 @@ prepare() { --enable DAMON_DBGFS \ --enable DAMON_SYSFS \ --enable DAMON_PADDR \ - --enable DAMON_RECLAIM + --enable DAMON_RECLAIM \ + --enable DAMON_LRU_SORT fi if [ -n "$_lrng_enable" ]; then @@ -812,23 +810,19 @@ for _p in "${pkgname[@]}"; do }" done -sha256sums=('c70cb405076c3cfd73e4de729430b0342ea21b92a04d8284a03fac664ef1cfea' - '83425e8b1553f4ad0d8fdadbad3980b71f7a36742b3238813ff4d00cd3bf08f8' - '43ac1821d8e492ad5cbff180148d6896f39240d5ba9d9e09b3c67e26a3e27f36' - '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6' - '2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2' - 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232' - '3754c1ad6bc2fb4e73e9d77137e9f245b3be1a73a05685f0ca03f4c086e5d04d' - 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521' - 'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c' - '30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7' - '6b6c8d1fbefe7aa165fc62aef527665777d474133e2507e1dc9d09b12282f857' - 'f4ed599589fdd44270229492505f5f88e20d79e93b8044f8041a2fc90486bb4e' - '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00' - '344806f8ea9f0f7da883e2c27835153944df7a4b15bb3f97ec6b7b7709682f5d' - '99b18e00ca3e038481a23f4c83bc285a1ad0e209d049a8476c8f997627aaea79' - 'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e' - '8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19' - 'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb' - 'cb2494f5ad43fd260e26d771305dade3f9499fa1ffaf53cb9ef8c19b66dab7d7' -'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f') +sha256sums=('9c3731d405994f9cd3a1bb72e83140735831b19c7cec18e0d7a8f3046fa034e7' + '49ddff0aac1493c3049450f8dacb9de5217c5d9254bc736cd012b3e7bda6baf2' + '59279d00aae10848b167aab32baead615dc147996bd7c9542c8a65ec0bb33c21' + 'dfd20ada4ad708fa293476575189c560bed79a74c7682c01e74aa04dbfe8dbff' + '326d129f9435145add756dc967accd56ffe1d8ff1b6650f84d2578c41bd6dfd6' + 'dc2898751118804bc3f36b5a6928a2927d04919ce41c0ce013009f5564d6d232' + 'e2266d499cebdd5d195a044048ae4a13755f1d3edb3ece2c3f8837228b4cd521' + '71c33bf75dbf84673ad26a35c20b0f9ae0fa9944d91cd93a0b128752ca2eab0e' + '74797806c5f0fd05138e184dc7d871fae448648d57200f0a2df9c78ea04b8b99' + 'c60891c18687da053ed826a9195b070e19657d72e87424a48011ebbb42af37d5' + '1d9c83de97d541f5a7ae4612a96c05aea8ce38de5471cc21fd2197dbd6644d00' + '16085e0bba8e1843180f82df00d6040b97531cebb2c0c4c7fe23860322d06beb' + '180baf6baf2474b3ce2b1841b41659e909f9367271f03be443937fbd5d518004' + 'f5b02a27a6324fc5aaabbca03e76d483da9ff51c389e4fabda51fd85f77217fc' + '292240ee42f4e34b97528c9b2b2afcef7bc892501a3750b8825ac6ef9c87072e' + 'ce8bf7807b45a27eed05a5e1de5a0bf6293a3bbc2085bacae70cd1368f368d1f') |