diff options
author | antman666 | 2022-04-30 23:41:59 +0800 |
---|---|---|
committer | antman666 | 2022-04-30 23:41:59 +0800 |
commit | 4d5c98f2d60a93431464743c296dd46855c5badc (patch) | |
tree | d6bd605bd286f79578fc122fd4bed5ac12ed5e84 | |
parent | 961dd9216b012a0390b39f8b86a3f16d761a9d9a (diff) | |
download | aur-4d5c98f2d60a93431464743c296dd46855c5badc.tar.gz |
update linux-xanmod-tt-uksm-cjktty to 5.15.36-1
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 81 |
2 files changed, 78 insertions, 9 deletions
@@ -1,6 +1,6 @@ pkgbase = linux-xanmod-tt-uksm-cjktty pkgdesc = Linux Xanmod. Development branch with the Task Type CPU Scheduler by Hamad Al Marri - pkgver = 5.15.34 + pkgver = 5.15.36 pkgrel = 1 url = http://www.xanmod.org/ arch = x86_64 @@ -15,7 +15,7 @@ pkgbase = linux-xanmod-tt-uksm-cjktty options = !strip source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.tar.xz source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.tar.sign - source = https://github.com/xanmod/linux/releases/download/5.15.34-xanmod1-tt/patch-5.15.34-xanmod1-tt.xz + source = https://github.com/xanmod/linux/releases/download/5.15.36-xanmod1-tt/patch-5.15.36-xanmod1-tt.xz source = choose-gcc-optimization.sh source = 0001-cjktty.patch::https://raw.githubusercontent.com/zhmars/cjktty-patches/master/v5.x/cjktty-5.15.patch source = 0002-UKSM.patch::https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.15/uksm-patches/0001-UKSM-for-5.15.patch @@ -23,7 +23,7 @@ pkgbase = linux-xanmod-tt-uksm-cjktty validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E sha256sums = 57b2cf6991910e3b67a1b3490022e8a0674b6965c74c12da1e99d138d1991ee8 sha256sums = SKIP - sha256sums = 30a7a79e01f3e04b95c4f221ded20a0fab3fdab521afad551be5636586199b5f + sha256sums = 127db54a36c0f7c499bd3742b00fdc17d7802c7a616c7489244f88eeddf60e3e sha256sums = 1ac18cad2578df4a70f9346f7c6fccbb62f042a0ee0594817fdef9f2704904ee sha256sums = 97a525e28a270c5e6e5a4fc4ab4920c42ceef2f9921857497ab3c56ec343803e sha256sums = cb348cc3ba1a453ac6057ecc08000a2ccddc47b70491caaf71db34a3d630f77c @@ -43,6 +43,11 @@ if [ -z ${use_tracers+x} ]; then use_tracers=n fi +# Selecting between tickless idle, perodic tics or full tickless +if [ -z ${_tickrate+x} ]; then + _tickrate="full" +fi + ## Choose between GCC and CLANG config (default is GCC) if [ -z ${_compiler+x} ]; then _compiler=gcc @@ -69,6 +74,11 @@ if [ -z ${_use_O3+x} ];then _use_O3=y fi +# Use LLVM Type ( "full" or "thin" ) +if [ -z ${_use_llvm_type+x} ]; then + _use_llvm_type="full" +fi + # cpufreq gov (available:performance,ondemand,conservative,userspace,schedutil,powersave) if [ -z ${_cpufreq+x} ]; then _cpufreq=performance @@ -105,7 +115,7 @@ fi pkgbase=linux-xanmod-tt-uksm-cjktty _major=5.15 -pkgver=${_major}.34 +pkgver=${_major}.36 _branch=5.x xanmod=1 pkgrel=${xanmod} @@ -148,7 +158,7 @@ done sha256sums=('57b2cf6991910e3b67a1b3490022e8a0674b6965c74c12da1e99d138d1991ee8' 'SKIP' - '30a7a79e01f3e04b95c4f221ded20a0fab3fdab521afad551be5636586199b5f' + '127db54a36c0f7c499bd3742b00fdc17d7802c7a616c7489244f88eeddf60e3e' '1ac18cad2578df4a70f9346f7c6fccbb62f042a0ee0594817fdef9f2704904ee' '97a525e28a270c5e6e5a4fc4ab4920c42ceef2f9921857497ab3c56ec343803e' 'cb348cc3ba1a453ac6057ecc08000a2ccddc47b70491caaf71db34a3d630f77c') @@ -181,11 +191,32 @@ prepare() { # Applying configuration cp -vf CONFIGS/xanmod/${_compiler}/config .config - # enable LTO_CLANG_FULL + # enable LTO_CLANG if [ "${_compiler}" = "clang" ]; then - msg2 "Enable LTO_CLANG_FULL" - scripts/config --disable LTO_CLANG_THIN - scripts/config --enable LTO_CLANG_FULL + if [ $_use_llvm_type = "thin" ]; then + msg2 "Enable LTO_CLANG_THIN" + scripts/config --disable LTO_NONE \ + --enable LTO \ + --enable LTO_CLANG \ + --enable ARCH_SUPPORTS_LTO_CLANG \ + --enable ARCH_SUPPORTS_LTO_CLANG_THIN \ + --enable HAS_LTO_CLANG \ + --enable LTO_CLANG_THIN \ + --enable HAVE_GCC_PLUGINS + elif [ $_use_llvm_type = "full" ]; then + msg2 "Enable LTO_CLANG_FULL" + scripts/config --disable LTO_NONE \ + --enable LTO \ + --enable LTO_CLANG \ + --enable ARCH_SUPPORTS_LTO_CLANG \ + --enable ARCH_SUPPORTS_LTO_CLANG_THIN \ + --enable HAS_LTO_CLANG \ + --enable LTO_CLANG \ + --enable LTO_CLANG_FULL \ + --enable HAVE_GCC_PLUGINS + else + scripts/config --enable CONFIG_LTO_NONE + fi fi # CONFIG_STACK_VALIDATION gives better stack traces. Also is enabled in all official kernel packages by Archlinux team @@ -204,9 +235,46 @@ prepare() { fi fi + if [ "$_tickrate" = "perodic" ]; then + msg2 "Enabling periodic ticks..." + scripts/config --disable CONFIG_NO_HZ_IDLE + scripts/config --disable CONFIG_NO_HZ_FULL + scripts/config --disable CONFIG_NO_HZ + scripts/config --disable CONFIG_NO_HZ_COMMON + scripts/config --enable CONFIG_HZ_PERIODIC + elif [ "$_tickrate" = "idle" ]; then + msg2 "Enabling tickless idle..." + scripts/config --disable CONFIG_HZ_PERIODIC + scripts/config --disable CONFIG_NO_HZ_FULL + scripts/config --enable CONFIG_NO_HZ_IDLE + scripts/config --enable CONFIG_NO_HZ + scripts/config --enable CONFIG_NO_HZ_COMMON + elif [ "$_tickrate" = "full" ]; then + msg2 "Enabling tickless idle..." + scripts/config --disable CONFIG_HZ_PERIODIC + scripts/config --disable CONFIG_NO_HZ_IDLE + scripts/config --disable CONFIG_CONTEXT_TRACKING_FORCE + scripts/config --enable CONFIG_NO_HZ_FULL_NODEF + scripts/config --enable CONFIG_NO_HZ_FULL + scripts/config --enable CONFIG_NO_HZ + scripts/config --enable CONFIG_NO_HZ_COMMON + scripts/config --enable CONFIG_CONTEXT_TRACKING + fi + if [ "$use_numa" = "n" ]; then msg2 "Disabling NUMA..." scripts/config --disable CONFIG_NUMA + scripts/config --disable CONFIG_AMD_NUMA + scripts/config --disable CONFIG_X86_64_ACPI_NUMA + scripts/config --disable CONFIG_NODES_SPAN_OTHER_NODES + scripts/config --disable CONFIG_NUMA_EMU + scripts/config --disable CONFIG_NEED_MULTIPLE_NODES + scripts/config --disable CONFIG_USE_PERCPU_NUMA_NODE_ID + scripts/config --disable CONFIG_ACPI_NUMA + scripts/config --disable CONFIG_ARCH_SUPPORTS_NUMA_BALANCING + scripts/config --disable CONFIG_NODES_SHIFT + scripts/config --undefine CONFIG_NODES_SHIFT + scripts/config --disable CONFIG_NEED_MULTIPLE_NODES fi # NOT compress modules by default (may increase disk space) @@ -349,6 +417,7 @@ prepare() { scripts/config --disable CONFIG_X86_X32 scripts/config --disable CONFIG_STACKPROTECTOR_STRONG + scripts/config --enable CONFIG_WINESYNC # Let's user choose microarchitecture optimization in GCC # If you're using this PKGBUILD, if will use native by default |