diff options
author | P. Jung | 2022-01-12 01:13:33 +0100 |
---|---|---|
committer | P. Jung | 2022-01-12 01:13:33 +0100 |
commit | 451ce289228f44f2c1a6afba9ff2b42c6d5eead7 (patch) | |
tree | aa50bf6f750a61bc264bff7222f8a344d8aa813c /PKGBUILD | |
parent | 92962bae0a8aa49ab78408eabf6876f912c1c7b1 (diff) | |
download | aur-451ce289228f44f2c1a6afba9ff2b42c6d5eead7.tar.gz |
5.16-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 169 |
1 files changed, 75 insertions, 94 deletions
@@ -59,7 +59,7 @@ _mq_deadline_disable=y _kyber_disable=y ### Enable protect file mappings under memory pressure -_mm_protect=y +_mm_protect= ### Enable multigenerational LRU _lru_enable=y @@ -84,7 +84,7 @@ _use_optimization_select= # ATTENTION - one of two predefined values should be selected! # 'ultra' - highest compression ratio # 'normal' - standard compression ratio -_zstd_level='normal' +_zstd_level='ultra' ### Selecting the ZSTD module compression level # If you want to use ZSTD compression, @@ -121,14 +121,19 @@ if [ -n "$_use_llvm_lto" ]; then else pkgbase=linux-cacule fi -_major=5.15 -_minor=13 +_major=5.16 +_minor=0 +#_minorc=$((_minor+1)) +#_rcver=rc8 pkgver=${_major}.${_minor} -_srcname=linux-${pkgver} +#_stable=${_major}.${_minor} +_stable=${_major} +_stablerc=${_major}-${_rcver} +_srcname=linux-${_stable} +#_srcname=linux-${_major} arch=(x86_64 x86_64_v3) -pkgdesc='Linux CacULE scheduler Kernel by CachyOS and with some other patches and other improvements' -_srcname=linux-${pkgver} -pkgrel=1 +pkgdesc='Linux cacULE scheduler Kernel by CachyOS and with some other patches and other improvements' +pkgrel=2 arch=('x86_64' 'x86_64_v3') url="https://github.com/CachyOS/linux-cachyos" license=('GPL2') @@ -141,46 +146,42 @@ fi if [ -n "$_use_llvm_lto" ]; then makedepends+=(clang llvm lld python) fi -_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.15" +_patchsource="https://raw.githubusercontent.com/ptr1337/kernel-patches/master/5.16" source=( - "https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.xz" + "https://git.kernel.org/torvalds/t/linux-${_stable}.tar.gz" "config" - "${_patchsource}/cacule/cacule-5.15-full.patch" - "${_patchsource}/0001-arch-patches.patch" - "${_patchsource}/0001-cfi.patch" - "${_patchsource}/0001-lru-patches.patch" - "${_patchsource}/AMD/0001-amdpstate.patch" - "${_patchsource}/AMD/amd-sched.patch" - "${_patchsource}/AMD/0001-amd64-patches.patch" - "${_patchsource}/0001-bbr2.patch" + # "${_patchsource}/sched/0001-pjrc.patch" ## not released for 5.16 right now + "${_patchsource}/sched/0001-cacULE-5.16-full.patch" + #"${_patchsource}/sched/0001-bore-sched.patch" + # "${_patchsource}/sched/0001-tt.patch" + "${_patchsource}/0001-MG-LRU-v6.patch" + "${_patchsource}/0001-blk-patches.patch" + "${_patchsource}/0001-sched-perf-fix.patch" "${_patchsource}/0001-block-patches.patch" - "${_patchsource}/0001-cpu-patches.patch" + "${_patchsource}/0001-amdpstate.patch" + "${_patchsource}/0001-anbox.patch" + "${_patchsource}/0001-bbr2-patches.patch" + "${_patchsource}/0001-btrfs.patch" + "${_patchsource}/0001-lrng.patch" + "${_patchsource}/0001-cfi.patch" + "${_patchsource}/0001-cpu.patch" + "${_patchsource}/0001-clearlinux.patch" + "${_patchsource}/0001-f2fs-patches.patch" "${_patchsource}/0001-misc.patch" - "${_patchsource}/0001-btrfs-patches.patch" - "${_patchsource}/0001-clearlinux-patches.patch" - "${_patchsource}/0001-intel-patches.patch" - "${_patchsource}/0001-ntfs3.patch" - "${_patchsource}/0001-fixes-miscellaneous.patch" - "${_patchsource}/0001-futex-wait.v-fsync-winesync.patch" - "${_patchsource}/0001-hwmon-patches.patch" - "${_patchsource}/0001-ksmbd-patches.patch" - "${_patchsource}/0001-pf-patches.patch" - "${_patchsource}/0001-page-table-check.patch" - "${_patchsource}/0001-lqx-patches.patch" - "${_patchsource}/0001-lrng-patches.patch" + "${_patchsource}/0001-fixes.patch" + "${_patchsource}/0001-futex.patch" + "${_patchsource}/0001-hwmon.patch" + "${_patchsource}/0001-ksmbd.patch" + "${_patchsource}/0001-rcu.patch" + "${_patchsource}/0001-zstd-patches.patch" + "${_patchsource}/0001-zen-patches.patch" "${_patchsource}/0001-v4l2loopback.patch" - "${_patchsource}/0001-security-patches.patch" - "${_patchsource}/0001-spectre-patches.patch" - "${_patchsource}/0001-xanmod-patches.patch" - "${_patchsource}/0001-net-patches.patch" - "${_patchsource}/0001-sbitmap-patches.patch" - "${_patchsource}/0001-zstd.patch" + "${_patchsource}/misc/0007-v5.16-winesync.patch" + "${_patchsource}/next/0002-mm-next.patch" + "${_patchsource}/next/0003-folio-io.patch" "auto-cpu-optimization.sh" ) -#if [ -n "$_use_pgo" ]; then -# source+=("${_patchsource}/0001-PGO.patch") -#fi if [ -n "$_use_llvm_lto" ]; then LLVMOPTS="LLVM=1 LLVM_IAS=1" @@ -239,13 +240,11 @@ prepare() { "${srcdir}"/auto-cpu-optimization.sh fi - if [ -n "$_use_optimization_select" ]; then source "${startdir}"/configure cpu_arch fi - ### Selecting the CPU scheduler if [ "$_cpusched" = "bmq" ]; then echo "Selecting BMQ CPU scheduler..." @@ -285,7 +284,6 @@ prepare() { exit fi - if [ -n "$_use_cfi" ] && [ -n "$_use_llvm_lto" ]; then echo "Enabling CFI" scripts/config --enable CONFIG_ARCH_SUPPORTS_CFI_CLANG @@ -297,12 +295,6 @@ prepare() { scripts/config --disable CONFIG_LTO_NONE fi - # if [ -n "$_use_pgo" ]; then - # scripts/config --enable CONFIG_ARCH_SUPPORTS_PGO_CLANG - # scripts/config --enable DEBUG_FS - # scripts/config --enable CONFIG_PGO_CLANG - # fi - ### Optionally set tickrate to 1000 if [ -n "$_1k_HZ_ticks" ]; then echo "Setting tick rate to 1k..." @@ -512,9 +504,6 @@ prepare() { echo "Enabling KBUILD_CFLAGS -O3..." scripts/config --disable CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE scripts/config --enable CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3 - scripts/config --module CONFIG_IP_NF_TARGET_FULLCONENAT - scripts/config --module CONFIG_NETFILTER_XT_TARGET_FULLCONENAT - ### Optionally load needed modules for the make localmodconfig # See https://aur.archlinux.org/packages/modprobed-db @@ -557,6 +546,7 @@ _package() { 'modprobed-db: Keeps track of EVERY kernel module that has ever been probed - useful for those of us who make localmodconfig') provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE) + cd $_srcname local kernver="$(<version)" local modulesdir="$pkgdir/usr/lib/modules/$kernver" @@ -564,23 +554,21 @@ _package() { echo "Installing boot image..." # systemd expects to find the kernel here to allow hibernation # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344 - install -Dm644 "$(make $CLANGOPTS -s image_name)" "$modulesdir/vmlinuz" + install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz" # Used by mkinitcpio to name the kernel echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase" echo "Installing modules..." - make $CLANGOPTS INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install + make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install # remove build and source links rm "$modulesdir"/{source,build} - } _package-headers() { pkgdesc="Headers and scripts for building modules for the ${pkgdesc}" depends=("${pkgbase}=${pkgver}" "pahole") - cd $_srcname local builddir="$pkgdir/usr/lib/modules/$(<version)/build" @@ -591,11 +579,11 @@ _package-headers() { install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile cp -t "$builddir" -a scripts - # add objtool for external module building and enabled VALIDATION_STACK option + # required when STACK_VALIDATION is enabled install -Dt "$builddir/tools/objtool" tools/objtool/objtool - # add xfs and shmem for aufs building - mkdir -p "$builddir"/{fs/xfs,mm} + # required when DEBUG_INFO_BTF_MODULES is enabled + install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids echo "Installing headers..." cp -t "$builddir" -a include @@ -657,10 +645,7 @@ _package-headers() { echo "Adding symlink..." mkdir -p "$pkgdir/usr/src" ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" - } - - pkgname=("$pkgbase" "$pkgbase-headers") for _p in "${pkgname[@]}"; do eval "package_$_p() { @@ -670,36 +655,32 @@ for _p in "${pkgname[@]}"; do done -md5sums=('4423a9fc25fcaa9e562c0f28e03960b3' - '788dcd568f1c00441ad9746706e4f1bc' - 'afdbe964cd00357ef7248553ab9db091' - 'ef9fa3407854cea8e78112c25bb72e41' - 'e3fa8507aed6ef3ce37e62f18fe9b7e1' - '1f3becd94390729d940a60b1e9b872b1' - '9ce207e47ad186b612050bd83641a697' - 'dccfe71705b24d3fb1f51aaf2016216d' - '53f037488a66667220c263f92ded333d' - '2a8097ba46be56fbbe3967e9c34c9a0b' - '56ceaed8bfb44eca93298ccc5fe11ca7' - '67764a5824b567b49bcce19c01d4e1b3' - '018c728c9e744a99bb9b589028b8a1f6' - 'a5de61b14e9ff7bfb4cb6548b6ee1c93' - '41887f2f959068e41756f4c39671ca79' - 'b04c8a3f01b3dfba1410e2c26ec7d975' - '8cf507777e20cd4d75a0627eef10c10d' - '8bda7327ae759b1b52e3b617952bd964' - '8c354c3d1962ec6785db7f0c3fbbab03' - 'b6b2c2c6b4761aa5a8dea6ac0add8736' - 'c8546d67979e5f33f819284c11daa9c5' - '08c84362cb916b30d9c77e35b1b3bc54' - '7d28f804d6b74f9a22ad30d67af5a669' - '2130bb325438a2fc880593c5e345521f' - 'b09b84168822521426f197610727618b' - 'd9a892f66631615a72bdc93ee7397afa' - 'bc64b1d1a9c95b07c28457f7214ebf81' - '8d390345afa36c56fa15bf4f4edad9a2' - '102fd2533e85eaecb4255df77d3e2901' - '03bb361f5f900cc9fd1159eda5e4f0ff' - '7530840f2eb439f64307dd3157beb28e' - '940d98858e6e59ecc07da50e05f6bc3d' +md5sums=('5c6acbcc119ab680a32264c865ea70e1' + 'f9425b75de74d70497781f8c8448c27f' + '02e7cbd91491ad357bf2d507d58e21a0' + 'd16ccc4f52eb0bc08893dc66a7caa154' + '194c8e20ad30973c32159cb23f3be4c9' + '1262001a6a1e72fa271481cf897ac6d1' + 'f717c0a238353f443a6f0633a59ee8ca' + '2923efbd99eea15f7ef2ada70e661bd5' + '80e419d6847d4122a23a141fd3a40e52' + 'd194311161f8f44755e532db738f4a2d' + 'e9dff9b551b8fa7c0b47ae5ac0b16365' + '9f86c3b9e6271cfc4440864a6857b256' + 'b61fd5f488e44208fc97bfa6a274aebb' + 'd4c38ce51fb9a69aa92ad9b9e0199122' + 'a687c26c262ccb9ad7cb54697a1476bc' + '55bb44747ae64b05640e6452113877c2' + '80920e501b9b87bfe587edff445e6efe' + 'f574f1c40fa2d07602e77418b863e144' + '2458d1c5d00d10709922e686c5d1e97f' + '2160aabf2b9798907d36c4d246937d71' + '12ad5085b7f01793980f137f2c9451cb' + '167a4267269e6a709c54e7b9ea8bf8d5' + 'bf58290793d3a095ef95fb1fac2de89a' + 'de6db1147385c058b2e94df3c1739fdf' + 'cb9384ce179d08be6c90df6d0a0977a1' + '972fa89ff4ad22631fca50af2305c049' + '258c33888c85d1ecc0bbdf59c3a92895' + '9956af4381a21744369bf81d76d3142d' '21c98f19e883879dd3336c1fa143fd31') |