diff options
author | Joan Figueras | 2021-06-11 00:23:27 +0200 |
---|---|---|
committer | Joan Figueras | 2021-06-11 00:23:27 +0200 |
commit | d579969b75ebcea6f08c0f713f6ce30735d65176 (patch) | |
tree | 93c8754087a9c52a05c8c2d1cc10081552d6cd26 | |
parent | ccd920f78de48cdb9e78500adb8e8fb89ab709a2 (diff) | |
download | aur-d579969b75ebcea6f08c0f713f6ce30735d65176.tar.gz |
5.12.10-xanmod1-cacule
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 16 insertions, 8 deletions
@@ -1,6 +1,6 @@ pkgbase = linux-xanmod-cacule pkgdesc = Linux Xanmod. Branch with Cacule scheduler by Hamad Marri - pkgver = 5.12.9 + pkgver = 5.12.10 pkgrel = 1 url = http://www.xanmod.org/ arch = x86_64 @@ -14,14 +14,14 @@ pkgbase = linux-xanmod-cacule options = !strip source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.12.tar.xz source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.12.tar.sign - source = https://github.com/xanmod/linux/releases/download/5.12.9-xanmod1-cacule/patch-5.12.9-xanmod1-cacule.xz + source = https://github.com/xanmod/linux/releases/download/5.12.10-xanmod1-cacule/patch-5.12.10-xanmod1-cacule.xz source = choose-gcc-optimization.sh source = sphinx-workaround.patch::https://git.archlinux.org/svntogit/packages.git/plain/trunk/sphinx-workaround.patch?h=packages/linux&id=be7d4710850020de55bce930c83fa80347c02fc3 validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886 validpgpkeys = 647F28654894E3BD457199BE38DBBDC86092693E sha256sums = 7d0df6f2bf2384d68d0bd8e1fe3e071d64364dcdc6002e7b5c87c92d48fac366 sha256sums = SKIP - sha256sums = 8e1a56faf8bf9c6b886bf6fc747d6384e9846b1b99bb78f5d345ec72340c3227 + sha256sums = 04416f1da8d36178f2f2993c00735957a5d6505aa9150b8d60c796feb8103c1b sha256sums = 1ac18cad2578df4a70f9346f7c6fccbb62f042a0ee0594817fdef9f2704904ee sha256sums = 52fc0fcd806f34e774e36570b2a739dbdf337f7ff679b1c1139bee54d03301eb @@ -34,6 +34,11 @@ if [ -z ${use_tracers+x} ]; then use_tracers=y fi +## Choose between GCC and CLANG config (default is GCC) +if [ -z ${_compiler+x} ]; then + _compiler=gcc +fi + # Compile ONLY used modules to VASTLY reduce the number of modules built # and the build time. # @@ -53,7 +58,7 @@ _makenconfig= pkgbase=linux-xanmod-cacule _major=5.12 -pkgver=${_major}.9 +pkgver=${_major}.10 _branch=5.x xanmod=1 pkgrel=${xanmod} @@ -85,7 +90,7 @@ done sha256sums=('7d0df6f2bf2384d68d0bd8e1fe3e071d64364dcdc6002e7b5c87c92d48fac366' 'SKIP' - '8e1a56faf8bf9c6b886bf6fc747d6384e9846b1b99bb78f5d345ec72340c3227' + '04416f1da8d36178f2f2993c00735957a5d6505aa9150b8d60c796feb8103c1b' '1ac18cad2578df4a70f9346f7c6fccbb62f042a0ee0594817fdef9f2704904ee' '52fc0fcd806f34e774e36570b2a739dbdf337f7ff679b1c1139bee54d03301eb') @@ -99,7 +104,6 @@ prepare() { # hacky work around for xz not getting extracted # https://bbs.archlinux.org/viewtopic.php?id=265115 if [[ ! -f "$srcdir/patch-${pkgver}-xanmod${xanmod}-cacule" ]]; then - unlink "$srcdir/patch-${pkgver}-xanmod${xanmod}-cacule.xz" xz -dc "$startdir/patch-${pkgver}-xanmod${xanmod}-cacule.xz" > "$srcdir/patch-${pkgver}-xanmod${xanmod}-cacule" fi @@ -121,6 +125,9 @@ prepare() { patch -Np1 < "../$src" done + # Applying configuration + cp -vf CONFIGS/xanmod/${_compiler}/config .config + # CONFIG_STACK_VALIDATION gives better stack traces. Also is enabled in all official kernel packages by Archlinux team scripts/config --enable CONFIG_STACK_VALIDATION @@ -147,7 +154,7 @@ prepare() { # Put the file "myconfig" at the package folder (this will take preference) or "${XDG_CONFIG_HOME}/linux-xanmod/myconfig" # If we detect partial file with scripts/config commands, we execute as a script # If not, it's a full config, will be replaced - for _myconfig in "${startdir}/myconfig" "${XDG_CONFIG_HOME}/linux-xanmod/myconfig" ; do + for _myconfig in "${SRCDEST}/myconfig" "${HOME}/.config/linux-xanmod/myconfig" "${XDG_CONFIG_HOME}/linux-xanmod/myconfig" ; do if [ -f "${_myconfig}" ]; then if grep -q 'scripts/config' "${_myconfig}"; then # myconfig is a partial file. Executing as a script @@ -159,6 +166,7 @@ prepare() { cp -f "${_myconfig}" .config fi echo + break fi done @@ -182,7 +190,7 @@ prepare() { [[ -z "$_makenconfig" ]] || make nconfig # save configuration for later reuse - cat .config > "${startdir}/config.last" + cat .config > "${SRCDEST}/config.last" } build() { |