5.18.0-1
This commit is contained in:
parent
c37822439e
commit
09f94bfc36
86
.SRCINFO
86
.SRCINFO
@ -1,7 +1,7 @@
|
|||||||
pkgbase = linux-cachyos
|
pkgbase = linux-cachyos
|
||||||
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
|
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
|
||||||
pkgver = 5.17.9
|
pkgver = 5.18.0
|
||||||
pkgrel = 3
|
pkgrel = 1
|
||||||
url = https://github.com/CachyOS/linux-cachyos
|
url = https://github.com/CachyOS/linux-cachyos
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
arch = x86_64_v3
|
arch = x86_64_v3
|
||||||
@ -24,48 +24,52 @@ pkgbase = linux-cachyos
|
|||||||
makedepends = make
|
makedepends = make
|
||||||
makedepends = patch
|
makedepends = patch
|
||||||
options = !strip
|
options = !strip
|
||||||
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.17.9.tar.xz
|
source = https://github.com/torvalds/linux/archive/refs/tags/v5.18.tar.gz
|
||||||
source = config
|
source = config
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/sched/0001-bore-sched.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/sched/0001-bore-sched.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-arch.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-amd-perf.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0001-latency_nice.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-arch.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0002-anbox.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-bbr2.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0003-bbr2.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-cachy.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0004-cachy.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-ck-hrtimer.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0005-migrate.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-clearlinux.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0006-clearlinux.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-cpu.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0007-cpu.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-Extend-DAMOS-for-Proactive-LRU-lists-Sorting.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0008-fixes-miscellaneous.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-fixes.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0009-fs-patches.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-fs-patches.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0010-hwmon.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-futex-winesync.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0011-lru-le9.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-hwmon.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0012-spf-lru.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-kbuild.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0013-xanmod.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-latency_nice.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0014-lrng.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-lrng.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0015-ck-hrtimer.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-lru-le9-spf.patch
|
||||||
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.17/0016-futex-winesync.patch
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-migrate.patch
|
||||||
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-ksm.patch
|
||||||
|
source = https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.18/0001-zram-entropy-calculation.patch
|
||||||
source = auto-cpu-optimization.sh
|
source = auto-cpu-optimization.sh
|
||||||
sha256sums = 172424bc41ef2df9b19457ceb022b56a51eb9497529b15ce7e9b8d6f90ad5978
|
sha256sums = 4037b6912e2b6c5102ce89840e32a16839dadd846ee3afdfb6704f44273b0c95
|
||||||
sha256sums = 7ad9dced23394e7db11dc70e5ad95589828001c8b09d3c1f9d54375e3c396dcb
|
sha256sums = 37ee10cdd091325b470ad6c0969d9e81deb8194f482d154efe97382afbd6e43a
|
||||||
sha256sums = e08fb439ba424c9c8db8f41fe9328dd3e30d4405094b6972dcce3863f04a9f46
|
sha256sums = e08fb439ba424c9c8db8f41fe9328dd3e30d4405094b6972dcce3863f04a9f46
|
||||||
sha256sums = 09aa0e17190ee113a352573b2d2386cc04b522641fd277306e8ace9fd7af0037
|
sha256sums = 9824cd3a41db040bf28d6538aa4805f869333139cbcf43e0422e1b42f5401270
|
||||||
sha256sums = 5095ab381e4d68a5e5b75c5e6c7be120ca4107b28ea399a791392325d4c5e630
|
sha256sums = 2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2
|
||||||
sha256sums = ddaf45cc72ed743f70c8754505357e94d6dd4133bfde6e9c6afc59f4cc12ee69
|
sha256sums = 56f58801a73e6d930d7680806dc734b50b69617a0eef96244627d7a946b62efd
|
||||||
sha256sums = 6b31e4655e5ff9dbe95fb7db665426dad2bf3e33b5102d040a256f707cc99a23
|
sha256sums = 09d2b3d6b919091f0f313609bdfd7603bfaa8765f0edeaf15efca2aec78284eb
|
||||||
sha256sums = 8d327824362a7484bf7a8e4bfbe37e969ee39bbbb1c09c9e1e909b7e5941240d
|
sha256sums = 097e6faccc2dc15e7c02fc4e22616608c7d26e515a3580f3ef1a6a2ef705ef68
|
||||||
sha256sums = 703f50e2be466ee0f97cf789de55880ea873d87356a4c677e3820d2730d16911
|
sha256sums = d6e9d3a5a87b4d43ceb4a415e9a15a949c755a2b65f9cf3dcc4bfac15a68af02
|
||||||
sha256sums = a13c4f5a688a86c8c67642a4129d2c89efd5f1afd3625e15ce5abe0b983d60d0
|
sha256sums = c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c
|
||||||
sha256sums = ab87b51fcacd9c7c5bf5d363ac45dab994c2c53d0e80e552390c7cbf752d7dca
|
sha256sums = 30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7
|
||||||
sha256sums = 4567a7b51d98643b599a9cd5029c7c433661a3519ecf9816d4557e6bd8174917
|
sha256sums = e6e02392982b7ce5ca7070231144d9d1c861f4ff45b41f34551450b52fb206ba
|
||||||
sha256sums = 12ebabff02f66e1583232591fc4ddf09c6437f11a4c59045d6d50d4be0f3693e
|
sha256sums = 9ea85b97b92c01a8d620a74ab3c375c5cb5017a8f3a5c9996bfff31997521f61
|
||||||
sha256sums = 82f546fe2e1fc686703ae3f5910c5867ddb4d1a517ac3eec154ba8de32e91cda
|
sha256sums = 67134052d1dc7332ba5a991ec54a2a957539bec4eb4a1a0ed0f0ad7daa8fe763
|
||||||
sha256sums = 9c2c0ccee49c17663f27dcdf43cfa02cd45ee15d53ff1a05da7e683098abdde1
|
sha256sums = c1aae07261bafc711c2d66e26c2c30e444e11509cacc7aec148dc021761294cd
|
||||||
sha256sums = 1b2dd9147b7443a42ec49e9d1bf01d1209bfcbe625e686e90f0276abb3ed52ec
|
sha256sums = ca0e1507579f146ee952a2432954095c59e2ab428d843d9e7de739dc93d319c8
|
||||||
sha256sums = 0e5177f086ddcac9b0e6596d29588c0730cce5c827e4c51e57f835a32f25ee85
|
sha256sums = 890e9f9953f3650a8e2523bca0fdf84ffc763367a8a792a7f3ef72eb18aed9ad
|
||||||
sha256sums = 761abc5bd65c194b6b810af1022df5888ce0ecbe70ffe4cd67e6e0c748fb78a2
|
sha256sums = ffa7f63135f093e04cd3af1ec2a9c43381357b6477d59a569580f9f0889f5cfc
|
||||||
sha256sums = 07e34ca2f03d96837166ff4764503a76ff6f499107716455073e5e081b40a146
|
sha256sums = d2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e
|
||||||
sha256sums = 179b540f8848b03ccb1a0d12e24feab63fd0576b5e9eed8f214d6e9cb790f151
|
sha256sums = e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65
|
||||||
sha256sums = 65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b
|
sha256sums = 8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19
|
||||||
|
sha256sums = efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb
|
||||||
|
sha256sums = be21f15aeb22b2ca1e35e4975590d30736af0483ea7464e3464a60d993e37e22
|
||||||
|
|
||||||
pkgname = linux-cachyos
|
pkgname = linux-cachyos
|
||||||
pkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modules
|
pkgdesc = The Linux BORE scheduler Kernel by CachyOS with other patches and improvements kernel and modules
|
||||||
|
183
PKGBUILD
183
PKGBUILD
@ -11,7 +11,6 @@
|
|||||||
# 'cacule' - select 'CacULE scheduler'
|
# 'cacule' - select 'CacULE scheduler'
|
||||||
# 'cacule-rdb' - select 'CacULE-RDB scheduler'
|
# 'cacule-rdb' - select 'CacULE-RDB scheduler'
|
||||||
# 'bore' - select 'Burst-Oriented Response Enhancer'
|
# 'bore' - select 'Burst-Oriented Response Enhancer'
|
||||||
# 'tt' - select 'Task Type Scheduler by Hamad Marri'
|
|
||||||
# 'cfs' - select 'Completely Fair Scheduler'
|
# 'cfs' - select 'Completely Fair Scheduler'
|
||||||
_cpusched='bore'
|
_cpusched='bore'
|
||||||
|
|
||||||
@ -26,9 +25,6 @@ _makenconfig=
|
|||||||
# See, https://bugs.archlinux.org/task/31187
|
# See, https://bugs.archlinux.org/task/31187
|
||||||
_NUMAdisable=y
|
_NUMAdisable=y
|
||||||
|
|
||||||
## Enable Anbox
|
|
||||||
_anbox=
|
|
||||||
|
|
||||||
# Compile ONLY used modules to VASTLYreduce the number of modules built
|
# Compile ONLY used modules to VASTLYreduce the number of modules built
|
||||||
# and the build time.
|
# and the build time.
|
||||||
#
|
#
|
||||||
@ -75,7 +71,7 @@ _kyber_disable=y
|
|||||||
_lru_enable=y
|
_lru_enable=y
|
||||||
|
|
||||||
## Enable DAMON
|
## Enable DAMON
|
||||||
_damon=
|
_damon=y
|
||||||
|
|
||||||
## enable SPECULATIVE_PAGE_FAULT
|
## enable SPECULATIVE_PAGE_FAULT
|
||||||
_spf_enable=y
|
_spf_enable=y
|
||||||
@ -84,10 +80,10 @@ _spf_enable=y
|
|||||||
_lrng_enable=y
|
_lrng_enable=y
|
||||||
|
|
||||||
## Apply Kernel automatic Optimization
|
## Apply Kernel automatic Optimization
|
||||||
_use_auto_optimization=y
|
_use_auto_optimization=
|
||||||
|
|
||||||
## Apply Kernel Optimization selecting
|
## Apply Kernel Optimization selecting
|
||||||
_use_optimization_select=
|
_use_optimization_select=y
|
||||||
|
|
||||||
## Enable zram/zswap ZSTD compression
|
## Enable zram/zswap ZSTD compression
|
||||||
_zstd_compression=y
|
_zstd_compression=y
|
||||||
@ -102,28 +98,34 @@ _use_llvm_lto=
|
|||||||
## Change the thin lto cachedir for fixing building several dkms modules including zfs
|
## Change the thin lto cachedir for fixing building several dkms modules including zfs
|
||||||
_thin_lto_cachedir=
|
_thin_lto_cachedir=
|
||||||
|
|
||||||
## Enable it for using the LLVM CFI PATCH for a better security
|
# KCFI is a proposed forward-edge control-flow integrity scheme for
|
||||||
_use_cfi=
|
# Clang, which is more suitable for kernel use than the existing CFI
|
||||||
|
# scheme used by CONFIG_CFI_CLANG. KCFI doesn't require LTO, doesn't
|
||||||
|
# alter function references to point to a jump table, and won't break
|
||||||
|
# function address equality.
|
||||||
|
# ATTENTION!: you do need a patched llvm for the usage of kcfi,
|
||||||
|
# you can find a patched llvm-git in the cachyos-repo's.
|
||||||
|
# The packagename is called "llvm-kcfi"
|
||||||
|
_use_kcfi=
|
||||||
|
|
||||||
if [ -n "$_use_llvm_lto" ]; then
|
if [ -n "$_use_llvm_lto" ]; then
|
||||||
# pkgbase=linux-cachyos-${_cpusched}-lto
|
|
||||||
pkgbase=linux-cachyos-lto
|
pkgbase=linux-cachyos-lto
|
||||||
else
|
else
|
||||||
pkgbase=linux-cachyos
|
pkgbase=linux-cachyos
|
||||||
fi
|
fi
|
||||||
_major=5.17
|
_major=5.18
|
||||||
_minor=9
|
_minor=0
|
||||||
#_minorc=$((_minor+1))
|
#_minorc=$((_minor+1))
|
||||||
#_rcver=rc8
|
#_rcver=rc8
|
||||||
pkgver=${_major}.${_minor}
|
pkgver=${_major}.${_minor}
|
||||||
_stable=${_major}.${_minor}
|
#_stable=${_major}.${_minor}
|
||||||
#_stable=${_major}
|
_stable=${_major}
|
||||||
#_stablerc=${_major}-${_rcver}
|
#_stablerc=${_major}-${_rcver}
|
||||||
_srcname=linux-${_stable}
|
_srcname=linux-${_stable}
|
||||||
#_srcname=linux-${_major}
|
#_srcname=linux-${_major}
|
||||||
arch=(x86_64 x86_64_v3)
|
arch=(x86_64 x86_64_v3)
|
||||||
pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements'
|
pkgdesc='Linux BORE scheduler Kernel by CachyOS with other patches and improvements'
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
arch=('x86_64' 'x86_64_v3')
|
arch=('x86_64' 'x86_64_v3')
|
||||||
url="https://github.com/CachyOS/linux-cachyos"
|
url="https://github.com/CachyOS/linux-cachyos"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
@ -131,12 +133,18 @@ options=('!strip')
|
|||||||
makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')
|
makedepends=('bc' 'texlive-latexextra' 'libelf' 'pahole' 'cpio' 'perl' 'tar' 'xz' 'zstd' 'xmlto' 'git' 'gcc' 'gcc-libs' 'glibc' 'binutils' 'make' 'patch')
|
||||||
if [ -n "$_use_llvm_lto" ]; then
|
if [ -n "$_use_llvm_lto" ]; then
|
||||||
makedepends+=(clang llvm lld python)
|
makedepends+=(clang llvm lld python)
|
||||||
|
BUILD_FLAGS=(
|
||||||
|
CC=clang
|
||||||
|
LD=ld.lld
|
||||||
|
LLVM=1
|
||||||
|
LLVM_IAS=1
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"
|
_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/${_major}"
|
||||||
source=(
|
source=(
|
||||||
"https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"
|
"https://github.com/torvalds/linux/archive/refs/tags/v${_major}.tar.gz"
|
||||||
"config"
|
# "https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz"
|
||||||
)
|
"config")
|
||||||
if [ "$_cpusched" = "bmq" ]; then
|
if [ "$_cpusched" = "bmq" ]; then
|
||||||
source+=("${_patchsource}/sched/0001-prjc.patch")
|
source+=("${_patchsource}/sched/0001-prjc.patch")
|
||||||
fi
|
fi
|
||||||
@ -144,43 +152,45 @@ if [ "$_cpusched" = "pds" ]; then
|
|||||||
source+=("${_patchsource}/sched/0001-prjc.patch")
|
source+=("${_patchsource}/sched/0001-prjc.patch")
|
||||||
fi
|
fi
|
||||||
if [ "$_cpusched" = "cacule" ]; then
|
if [ "$_cpusched" = "cacule" ]; then
|
||||||
source+=("${_patchsource}/sched/0001-cacULE.patch")
|
source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")
|
||||||
fi
|
fi
|
||||||
if [ "$_cpusched" = "cacule-rdb" ]; then
|
if [ "$_cpusched" = "cacule-rdb" ]; then
|
||||||
source+=("${_patchsource}/sched/0001-cacULE.patch")
|
source+=("${_patchsource}/sched/0001-cacULE-5.18.patch")
|
||||||
fi
|
|
||||||
if [ "$_cpusched" = "tt" ]; then
|
|
||||||
source+=("${_patchsource}/sched/0001-tt.patch")
|
|
||||||
fi
|
fi
|
||||||
if [ "$_cpusched" = "bore" ]; then
|
if [ "$_cpusched" = "bore" ]; then
|
||||||
source+=("${_patchsource}/sched/0001-bore-sched.patch")
|
source+=("${_patchsource}/sched/0001-bore-sched.patch")
|
||||||
fi
|
fi
|
||||||
source+=(
|
source+=(
|
||||||
|
"${_patchsource}/0001-amd-perf.patch"
|
||||||
"${_patchsource}/0001-arch.patch"
|
"${_patchsource}/0001-arch.patch"
|
||||||
|
"${_patchsource}/0001-bbr2.patch"
|
||||||
|
"${_patchsource}/0001-cachy.patch"
|
||||||
|
"${_patchsource}/0001-ck-hrtimer.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-latency_nice.patch"
|
"${_patchsource}/0001-latency_nice.patch"
|
||||||
"${_patchsource}/0002-anbox.patch"
|
"${_patchsource}/0001-lrng.patch"
|
||||||
"${_patchsource}/0003-bbr2.patch"
|
"${_patchsource}/0001-lru-le9-spf.patch"
|
||||||
"${_patchsource}/0004-cachy.patch"
|
"${_patchsource}/0001-migrate.patch"
|
||||||
"${_patchsource}/0005-migrate.patch"
|
"${_patchsource}/0001-ksm.patch"
|
||||||
"${_patchsource}/0006-clearlinux.patch"
|
"${_patchsource}/0001-zram-entropy-calculation.patch"
|
||||||
"${_patchsource}/0007-cpu.patch"
|
|
||||||
"${_patchsource}/0008-fixes-miscellaneous.patch"
|
|
||||||
"${_patchsource}/0009-fs-patches.patch"
|
|
||||||
"${_patchsource}/0010-hwmon.patch"
|
|
||||||
"${_patchsource}/0011-lru-le9.patch"
|
|
||||||
"${_patchsource}/0012-spf-lru.patch"
|
|
||||||
"${_patchsource}/0013-xanmod.patch"
|
|
||||||
"${_patchsource}/0014-lrng.patch"
|
|
||||||
"${_patchsource}/0015-ck-hrtimer.patch"
|
|
||||||
"${_patchsource}/0016-futex-winesync.patch"
|
|
||||||
"auto-cpu-optimization.sh"
|
"auto-cpu-optimization.sh"
|
||||||
)
|
)
|
||||||
|
|
||||||
if [ -n "$_use_llvm_lto" ]; then
|
if [ -n "$_use_kcfi" ]; then
|
||||||
BUILD_FLAGS=(
|
source+=("${_patchsource}/0001-kcfi.patch")
|
||||||
LLVM=1
|
depends+=(clang llvm lld python)
|
||||||
LLVM_IAS=1
|
BUILD_FLAGS=(
|
||||||
)
|
CC=clang
|
||||||
|
LD=ld.lld
|
||||||
|
LLVM=1
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export KBUILD_BUILD_HOST=archlinux
|
export KBUILD_BUILD_HOST=archlinux
|
||||||
@ -237,10 +247,6 @@ prepare() {
|
|||||||
scripts/config --enable CACULE_SCHED \
|
scripts/config --enable CACULE_SCHED \
|
||||||
--enable CACULE_RDB \
|
--enable CACULE_RDB \
|
||||||
--set-val RDB_INTERVAL 19
|
--set-val RDB_INTERVAL 19
|
||||||
elif [ "$_cpusched" = "tt" ]; then
|
|
||||||
echo "Enable TT CPU scheduler..."
|
|
||||||
scripts/config --enable TT_SCHED \
|
|
||||||
--enable TT_ACCOUNTING_STATS
|
|
||||||
elif [ "$_cpusched" = "bore" ]; then
|
elif [ "$_cpusched" = "bore" ]; then
|
||||||
echo "Selecting BORE Scheduler..."
|
echo "Selecting BORE Scheduler..."
|
||||||
scripts/config --enable SCHED_BORE
|
scripts/config --enable SCHED_BORE
|
||||||
@ -256,11 +262,11 @@ prepare() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if [ -n "$_use_cfi" ] && [ -n "$_use_llvm_lto" ]; then
|
if [ -n "$_use_kcfi" ]; then
|
||||||
# echo "Enabling CFI"
|
echo "Enabling kCFI"
|
||||||
# scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \
|
scripts/config --enable ARCH_SUPPORTS_CFI_CLANG \
|
||||||
# --enable CFI_CLANG
|
--enable CFI_CLANG
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
if [ "$_use_llvm_lto" = "thin" ]; then
|
if [ "$_use_llvm_lto" = "thin" ]; then
|
||||||
echo "Enabling LLVM THIN LTO..."
|
echo "Enabling LLVM THIN LTO..."
|
||||||
@ -438,8 +444,9 @@ prepare() {
|
|||||||
if [ -n "$_damon" ]; then
|
if [ -n "$_damon" ]; then
|
||||||
echo "Enabling DAMON..."
|
echo "Enabling DAMON..."
|
||||||
scripts/config --enable DAMON \
|
scripts/config --enable DAMON \
|
||||||
--disable DAMON_VADDR \
|
--enable DAMON_VADDR \
|
||||||
--disable DAMON_DBGFS \
|
--enable DAMON_DBGFS \
|
||||||
|
--enable DAMON_SYSFS \
|
||||||
--enable DAMON_PADDR \
|
--enable DAMON_PADDR \
|
||||||
--enable DAMON_RECLAIM
|
--enable DAMON_RECLAIM
|
||||||
fi
|
fi
|
||||||
@ -501,24 +508,10 @@ prepare() {
|
|||||||
--set-str ZSWAP_COMPRESSOR_DEFAULT zstd
|
--set-str ZSWAP_COMPRESSOR_DEFAULT zstd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$_anbox" ]; then
|
echo "Enable ZRAM_ENTROPY"
|
||||||
echo "Enable Anbox..."
|
scripts/config --enable ZRAM_ENTROPY
|
||||||
scripts/config --enable ASHMEM \
|
|
||||||
--enable ANDROID \
|
|
||||||
--enable ANDROID_BINDER_IPC \
|
|
||||||
--enable ANDROID_BINDERFS \
|
|
||||||
--enable ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
|
|
||||||
fi
|
|
||||||
|
|
||||||
scripts/config --disable DEBUG_INFO \
|
|
||||||
--disable DEBUG_INFO_BTF \
|
|
||||||
--disable DEBUG_INFO_DWARF4 \
|
|
||||||
--disable PAHOLE_HAS_SPLIT_BTF \
|
|
||||||
--disable DEBUG_INFO_BTF_MODULES
|
|
||||||
|
|
||||||
echo "Enable USER_NS_UNPRIVILEGED"
|
echo "Enable USER_NS_UNPRIVILEGED"
|
||||||
scripts/config --enable USER_NS
|
scripts/config --enable USER_NS
|
||||||
|
|
||||||
echo "Enable WINE FASTSYNC"
|
echo "Enable WINE FASTSYNC"
|
||||||
scripts/config --enable WINESYNC
|
scripts/config --enable WINESYNC
|
||||||
|
|
||||||
@ -616,10 +609,10 @@ _package-headers() {
|
|||||||
# required when STACK_VALIDATION is enabled
|
# required when STACK_VALIDATION is enabled
|
||||||
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
|
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
|
||||||
|
|
||||||
# # required when DEBUG_INFO_BTF_MODULES is enabled
|
# required when DEBUG_INFO_BTF_MODULES is enabled
|
||||||
# if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then
|
if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then
|
||||||
# install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
|
install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
echo "Installing headers..."
|
echo "Installing headers..."
|
||||||
cp -t "$builddir" -a include
|
cp -t "$builddir" -a include
|
||||||
@ -691,24 +684,26 @@ for _p in "${pkgname[@]}"; do
|
|||||||
}"
|
}"
|
||||||
done
|
done
|
||||||
|
|
||||||
sha256sums=('172424bc41ef2df9b19457ceb022b56a51eb9497529b15ce7e9b8d6f90ad5978'
|
sha256sums=('4037b6912e2b6c5102ce89840e32a16839dadd846ee3afdfb6704f44273b0c95'
|
||||||
'7ad9dced23394e7db11dc70e5ad95589828001c8b09d3c1f9d54375e3c396dcb'
|
'37ee10cdd091325b470ad6c0969d9e81deb8194f482d154efe97382afbd6e43a'
|
||||||
'e08fb439ba424c9c8db8f41fe9328dd3e30d4405094b6972dcce3863f04a9f46'
|
'e08fb439ba424c9c8db8f41fe9328dd3e30d4405094b6972dcce3863f04a9f46'
|
||||||
'09aa0e17190ee113a352573b2d2386cc04b522641fd277306e8ace9fd7af0037'
|
'9824cd3a41db040bf28d6538aa4805f869333139cbcf43e0422e1b42f5401270'
|
||||||
'5095ab381e4d68a5e5b75c5e6c7be120ca4107b28ea399a791392325d4c5e630'
|
'2bfe45a67732a97cea01bf760a8f9fb297057c2488eb9e61720a0bb26c9b11e2'
|
||||||
'ddaf45cc72ed743f70c8754505357e94d6dd4133bfde6e9c6afc59f4cc12ee69'
|
'56f58801a73e6d930d7680806dc734b50b69617a0eef96244627d7a946b62efd'
|
||||||
'6b31e4655e5ff9dbe95fb7db665426dad2bf3e33b5102d040a256f707cc99a23'
|
'09d2b3d6b919091f0f313609bdfd7603bfaa8765f0edeaf15efca2aec78284eb'
|
||||||
'8d327824362a7484bf7a8e4bfbe37e969ee39bbbb1c09c9e1e909b7e5941240d'
|
'097e6faccc2dc15e7c02fc4e22616608c7d26e515a3580f3ef1a6a2ef705ef68'
|
||||||
'703f50e2be466ee0f97cf789de55880ea873d87356a4c677e3820d2730d16911'
|
'd6e9d3a5a87b4d43ceb4a415e9a15a949c755a2b65f9cf3dcc4bfac15a68af02'
|
||||||
'a13c4f5a688a86c8c67642a4129d2c89efd5f1afd3625e15ce5abe0b983d60d0'
|
'c2bf57d37db1f93c5f3eeff2e2957f01618f4786613c13755f9ae6989d2b745c'
|
||||||
'ab87b51fcacd9c7c5bf5d363ac45dab994c2c53d0e80e552390c7cbf752d7dca'
|
'30fd4ca078cb1eee0bc4005700da4d15515a577ccdb96ea7922040aa9086d6b7'
|
||||||
'4567a7b51d98643b599a9cd5029c7c433661a3519ecf9816d4557e6bd8174917'
|
'e6e02392982b7ce5ca7070231144d9d1c861f4ff45b41f34551450b52fb206ba'
|
||||||
'12ebabff02f66e1583232591fc4ddf09c6437f11a4c59045d6d50d4be0f3693e'
|
'9ea85b97b92c01a8d620a74ab3c375c5cb5017a8f3a5c9996bfff31997521f61'
|
||||||
'82f546fe2e1fc686703ae3f5910c5867ddb4d1a517ac3eec154ba8de32e91cda'
|
'67134052d1dc7332ba5a991ec54a2a957539bec4eb4a1a0ed0f0ad7daa8fe763'
|
||||||
'9c2c0ccee49c17663f27dcdf43cfa02cd45ee15d53ff1a05da7e683098abdde1'
|
'c1aae07261bafc711c2d66e26c2c30e444e11509cacc7aec148dc021761294cd'
|
||||||
'1b2dd9147b7443a42ec49e9d1bf01d1209bfcbe625e686e90f0276abb3ed52ec'
|
'ca0e1507579f146ee952a2432954095c59e2ab428d843d9e7de739dc93d319c8'
|
||||||
'0e5177f086ddcac9b0e6596d29588c0730cce5c827e4c51e57f835a32f25ee85'
|
'890e9f9953f3650a8e2523bca0fdf84ffc763367a8a792a7f3ef72eb18aed9ad'
|
||||||
'761abc5bd65c194b6b810af1022df5888ce0ecbe70ffe4cd67e6e0c748fb78a2'
|
'ffa7f63135f093e04cd3af1ec2a9c43381357b6477d59a569580f9f0889f5cfc'
|
||||||
'07e34ca2f03d96837166ff4764503a76ff6f499107716455073e5e081b40a146'
|
'd2c542b3d44ef11364248c550d20ec7b52261cd98ee5191c24d59c9e0a69392e'
|
||||||
'179b540f8848b03ccb1a0d12e24feab63fd0576b5e9eed8f214d6e9cb790f151'
|
'e8179f661dc9ba2ad89455f0c7e952e9dd9b4d6445476384cbac2730cdd46b65'
|
||||||
'65ec9ac5b8b28d5b61df1c72498059be2e7cb1f9b965bac0e4ffed3c05520b2b')
|
'8edf9b9b1a9c26cc4d6dfaf5f14c06b197a04c5bbb8459dd292c033aa2534d19'
|
||||||
|
'efe8558b63feb0e76b61d69952c5300ad54c951d9044101be7c01932a54fb4fb'
|
||||||
|
'be21f15aeb22b2ca1e35e4975590d30736af0483ea7464e3464a60d993e37e22')
|
||||||
|
@ -22,6 +22,10 @@ then
|
|||||||
elif [[ ${MARCH} == "ZNVER3" ]]
|
elif [[ ${MARCH} == "ZNVER3" ]]
|
||||||
then
|
then
|
||||||
MARCH="ZEN3"
|
MARCH="ZEN3"
|
||||||
|
|
||||||
|
elif [[ ${MARCH} == "BDVER2" ]]
|
||||||
|
then
|
||||||
|
MARCH="MPILEDRIVER"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "----------------------------------"
|
echo "----------------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user