summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHouge Langley2021-04-11 10:35:34 +0800
committerHouge Langley2021-04-11 10:35:34 +0800
commit4d855f8f44a60fa3bda27916f80c3bee674ef36c (patch)
tree3a4f9cc2ca6797b5e4fe920626c3843f5182be06
parent16b2a5e992c0a64f6426e185190fd5c17136067c (diff)
downloadaur-4d855f8f44a60fa3bda27916f80c3bee674ef36c.tar.gz
Update
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD50
2 files changed, 9 insertions, 47 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fc1de9bf84d..3384cd71431 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = linux-manjaro-xanmod-uksm
pkgdesc = Linux Xanmod
- pkgver = 5.11.12
+ pkgver = 5.11.13
pkgrel = 1
url = http://www.xanmod.org/
arch = x86_64
@@ -38,9 +38,9 @@ pkgbase = linux-manjaro-xanmod-uksm
options = !strip
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.11.tar.xz
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.11.tar.sign
- source = https://github.com/HougeLangley/Xanmod-UKSM/releases/download/Fix/patch-5.11.12-xanmod1
+ source = https://github.com/HougeLangley/customkernel/releases/download/Kernel-v5.11.x/patch-5.11.13-xanmod1
source = choose-gcc-optimization.sh
- source = https://gitlab.manjaro.org/packages/core/linux511/-/archive/f7cef34101b9878fbb2783a374d94e7351d95642/linux511-f7cef34101b9878fbb2783a374d94e7351d95642.tar.gz
+ source = https://gitlab.manjaro.org/packages/core/linux511/-/archive/c7855cdcf1efebe4dcdceefeb0e42dbbc7d38196/linux511-c7855cdcf1efebe4dcdceefeb0e42dbbc7d38196.tar.gz
source = 0002-UKSM.patch
validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886
validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E
diff --git a/PKGBUILD b/PKGBUILD
index eda6fea4768..9c35b6d5c9c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -47,23 +47,6 @@ if [ -z ${use_tracers+x} ]; then
use_tracers=n
fi
-## Enable Cachy CPU scheduler by default https://github.com/xanmod/linux/blob/5.8/Documentation/scheduler/sched-Cachy.rst
-## Set variable "use_cachy" to: n to disable (stock Xanmod)
-## y to enable
-## Cachy 已经退出历史舞台,后来作者也将这个算法转移到 CaCule,个人也比较推荐这个,响应速度更快
-if [ -z ${use_cachy+x} ]; then
- use_cachy=n
-fi
-
-## Enable CONFIG_USER_NS_UNPRIVILEGED flag https://aur.archlinux.org/cgit/aur.git/tree/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch?h=linux-ck
-## Set variable "use_ns" to: n to disable (stock Xanmod)
-## y to enable (stock Archlinux)
-## 这里我不知道为什么作者默认选择 disable,因为这个功能不选择不少私有软件的无法启动的,比方说 Skype 和统信的微信,推荐大家默认启用
-#if [ -z ${use_ns+x} ]; then
-# use_ns=y
-#fi
-## 这个补丁已经没有用了
-
# Compile ONLY used modules to VASTLYreduce the number of modules built
# and the build time.
#
@@ -84,7 +67,7 @@ _makenconfig=y
pkgbase=linux-manjaro-xanmod-uksm
pkgname=("${pkgbase}" "${pkgbase}-headers")
-pkgver=5.11.12
+pkgver=5.11.13
_major=5.11
_branch=5.x
xanmod=1
@@ -93,7 +76,7 @@ pkgdesc='Linux Xanmod'
url="http://www.xanmod.org/"
arch=(x86_64)
-__commit="f7cef34101b9878fbb2783a374d94e7351d95642" # 5.11.12-1
+__commit="c7855cdcf1efebe4dcdceefeb0e42dbbc7d38196" # 5.11.13-1
license=(GPL2)
makedepends=(
@@ -105,7 +88,7 @@ makedepends=(
options=('!strip')
_srcname="linux-${pkgver}-xanmod${xanmod}"
source=("https://cdn.kernel.org/pub/linux/kernel/v${_branch}/linux-${_major}.tar."{xz,sign}
- "https://github.com/HougeLangley/Xanmod-UKSM/releases/download/Fix/patch-5.11.12-xanmod1"
+ "https://github.com/HougeLangley/customkernel/releases/download/Kernel-v5.11.x/patch-5.11.13-xanmod1"
choose-gcc-optimization.sh
"https://gitlab.manjaro.org/packages/core/linux511/-/archive/${__commit}/linux511-${__commit}.tar.gz"
'0002-UKSM.patch')
@@ -127,13 +110,6 @@ for _patch in $_commits; do
source+=("${_patch}.patch::https://git.archlinux.org/linux.git/patch/?id=${_patch}")
done
-# If use_cachy=y then download cachy patch
-if [ "$use_cachy" = "y" ]; then
- echo "Cachy branch is not ready yet..." && exit 1
- source+=("https://github.com/xanmod/linux/releases/download/${pkgver}-xanmod${xanmod}-cachy/patch-${pkgver}-xanmod${xanmod}-cachy.xz")
- sha256sums+=('c35685c5d706a683fc0b02cf11fd40db52becae9205bf0d71f6a4a901d836d69')
-fi
-
export KBUILD_BUILD_HOST=${KBUILD_BUILD_HOST:-archlinux}
export KBUILD_BUILD_USER=${KBUILD_BUILD_USER:-makepkg}
export KBUILD_BUILD_TIMESTAMP=${KBUILD_BUILD_TIMESTAMP:-$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})}
@@ -142,12 +118,8 @@ prepare() {
cd linux-${_major}
# Apply Xanmod patch
- if [ "$use_cachy" = "y" ]; then
- patch -Np1 -i ../patch-${pkgver}-xanmod${xanmod}-cachy
- else
- patch -Np1 -i ../patch-${pkgver}-xanmod${xanmod}
- fi
-
+ patch -Np1 -i ../patch-${pkgver}-xanmod${xanmod}
+
msg2 "Setting version..."
scripts/setlocalversion --save-scmversion
#echo "-$pkgrel" > localversion.10-pkgrel
@@ -193,17 +165,7 @@ prepare() {
msg2 "Disabling NUMA..."
scripts/config --disable CONFIG_NUMA
fi
-
- if [ "$use_cachy" = "y" ]; then
- msg2 "Enabling Cachy CPU scheduler by default..."
- scripts/config --enable CONFIG_CACHY_SCHED
- fi
-
- #if [ "$use_ns" = "n" ]; then
- # msg2 "Disabling CONFIG_USER_NS_UNPRIVILEGED"
- # scripts/config --disable CONFIG_USER_NS_UNPRIVILEGED
- #fi
-
+
msg2 "add anbox support"
scripts/config --enable CONFIG_ASHMEM
# CONFIG_ION is not set