summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2021-05-03 23:34:48 -0500
committerKyle K <kylek389@gmail.com>2021-05-03 23:34:48 -0500
commit30705a37da3c73b0cea342451a4cefb1c7d76d64 (patch)
tree1974eba35c8cd740faf5b9d2ed7f08408abfcba0
parente8c7ac4b3c4115742208c7b6f466c724702f73b7 (diff)
downloadgentoox-30705a37da3c73b0cea342451a4cefb1c7d76d64.tar.gz
gentoox-30705a37da3c73b0cea342451a4cefb1c7d76d64.tar.bz2
gentoox-30705a37da3c73b0cea342451a4cefb1c7d76d64.zip
Linux 5.12.1
-rwxr-xr-xgentoox_build.sh56
1 files changed, 29 insertions, 27 deletions
diff --git a/gentoox_build.sh b/gentoox_build.sh
index db0052e..8fbfe5c 100755
--- a/gentoox_build.sh
+++ b/gentoox_build.sh
@@ -235,22 +235,23 @@ cd /usr/src/linux/
if [[ ! -f '/tmp/gentoox-kernelpatches-applied' ]]; then
wget --quiet 'https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux' -O .config
- #wget --quiet -m -np -c 'ck.kolivas.org/patches/5.0/5.11/5.11-ck1/patches/'
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/android-patches-v2/0001-android-patches.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/arch-patches-v7/0001-arch-patches.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/btrfs-patches-v6/0001-btrfs-patches.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/clearlinux-patches/0001-clearlinux-patches.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/cpu-patches/0001-cpu-patches.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/fixes-miscellaneous-v9/0001-fixes-miscellaneous.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/mm-patches-v3/0001-mm-patches.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/futex-dev-patches/0001-futex-dev-patches.patch
- #wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/futex2-dev-trunk-patches-v4/0001-futex2-resync-from-gitlab.collabora.com.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/ntfs3-patches-v3/0001-ntfs3-patches.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/zstd-dev-patches/0001-zstd-dev-patches.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/zstd-patches/0001-init-add-support-for-zstd-compressed-modules.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/zswap-patches-v2/0001-zswap-patches.patch
- wget --quiet https://raw.githubusercontent.com/hamadmarri/cacule-cpu-scheduler/master/patches/CacULE/v5.11/cacule-5.11.patch
- wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.11/xanmod-patches-v2/0001-xanmod-patches.patch
+ #wget --quiet -m -np -c 'ck.kolivas.org/patches/5.0/5.12/5.12-ck1/patches/'
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/android-patches/0001-android-export-symbold-and-enable-building-ashmem-an.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/arch-patches/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/btrfs-patches-v2/0001-btrfs-patches.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/clearlinux-patches/0001-clearlinux-patches.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/cpu-patches/0001-cpu-patches.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/fixes-miscellaneous/0001-fixes-miscellaneous.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/mm-patches/0001-mm-5.12-protect-file-mappings-under-memory-pressure.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/initramfs-patches/0001-initramfs-patches.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/futex-trunk-patches/0001-futex-resync-from-gitlab.collabora.com.patch
+ #wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/futex2-dev-trunk-patches-v4/0001-futex2-resync-from-gitlab.collabora.com.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/ntfs3-patches/0001-ntfs3-patches.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/zstd-patches/0001-zstd-patches.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/zstd-dev-patches-v3/0001-zstd-dev-patches.patch
+ #wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/zswap-patches-v2/0001-zswap-patches.patch
+ wget --quiet https://raw.githubusercontent.com/hamadmarri/cacule-cpu-scheduler/master/patches/CacULE/v5.12/cacule-5.12.patch
+ wget --quiet https://gitlab.com/sirlucjan/kernel-patches/-/raw/master/5.12/xanmod-patches/0001-sched-autogroup-Add-kernel-parameter-and-config-opti.patch
#wget --quiet https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git/patch/?id=86ad60a65f29dd862a11c22bb4b5be28d6c5cef1 -O x86_aes-ni-xts_use_direct_calls_to_and_4-way_stride.patch
#wget --quiet https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git/patch/?id=2481104fe98d5b016fdd95d649b1235f21e491ba -O x86_aes-ni-xts_rewrite_and_drop_indirections_via_glue_helper.patch
@@ -271,36 +272,37 @@ if [[ ! -f '/tmp/gentoox-kernelpatches-applied' ]]; then
sed -i "s/CONFIG_ISO9660_FS=m/CONFIG_ISO9660_FS=y/" .config
# Anbox
- patch -p1 < 0001-android-patches.patch
+ patch -p1 < 0001-android-export-symbold-and-enable-building-ashmem-an.patch
scripts/config --enable CONFIG_ASHMEM
scripts/config --enable CONFIG_ANDROID
scripts/config --enable CONFIG_ANDROID_BINDER_IPC
scripts/config --enable CONFIG_ANDROID_BINDERFS
scripts/config --set-str CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder"
- patch -p1 < 0001-arch-patches.patch
+ patch -p1 < 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch
patch -p1 < 0001-btrfs-patches.patch
patch -p1 < 0001-clearlinux-patches.patch
patch -p1 < 0001-fixes-miscellaneous.patch
- patch -p1 < 0001-mm-patches.patch
- patch -p1 < 0001-futex-dev-patches.patch
+ patch -p1 < 0001-mm-5.12-protect-file-mappings-under-memory-pressure.patch
+ patch -p1 < 0001-initramfs-patches.patch
+ patch -p1 < 0001-futex-resync-from-gitlab.collabora.com.patch
#patch -p1 < 0001-futex2-resync-from-gitlab.collabora.com.patch
patch -p1 < ../0011-ZFS-fix.patch
patch -p1 < ../zfs-ungpl-rcu_read_unlock-export.diff
patch -p1 < 0001-ntfs3-patches.patch
patch -p1 < 0001-zstd-dev-patches.patch
- patch -p1 < 0001-init-add-support-for-zstd-compressed-modules.patch
- patch -p1 < 0001-zswap-patches.patch
- patch -p1 < cacule-5.11.patch
- patch -p1 < 0001-xanmod-patches.patch
+ patch -p1 < 0001-zstd-patches.patch
+ #patch -p1 < 0001-zswap-patches.patch
+ patch -p1 < cacule-5.12.patch
+ patch -p1 < 0001-sched-autogroup-Add-kernel-parameter-and-config-opti.patch
#patch -p1 < x86_aes-ni-xts_use_direct_calls_to_and_4-way_stride.patch
#patch -p1 < x86_aes-ni-xts_rewrite_and_drop_indirections_via_glue_helper.patch
# Linux Random Number Generator patch. http://www.chronox.de/lrng.html
- git clone --depth 1 --filter=blob:none --sparse https://github.com/smuellerDD/lrng.git lrng-5.11; cd lrng-5.11
- git sparse-checkout init --cone; git sparse-checkout set kernel_patches/v5.11; cd ..
- for f in lrng-5.11/kernel_patches/v5.11/*.patch; do patch -p1 < "\$f"; done
+ git clone --depth 1 --filter=blob:none --sparse https://github.com/smuellerDD/lrng.git lrng-5.12; cd lrng-5.12
+ git sparse-checkout init --cone; git sparse-checkout set kernel_patches/v5.12; cd ..
+ for f in lrng-5.12/kernel_patches/v5.12/*.patch; do patch -p1 < "\$f"; done
echo 'CONFIG_LRNG=y
CONFIG_LRNG_CONTINUOUS_COMPRESSION_DISABLED=y
CONFIG_LRNG_SWITCHABLE_CONTINUOUS_COMPRESSION=y