2021-04-08 16:26:57 +00:00
|
|
|
{ lib, stdenv, buildLinux, fetchFromGitHub, ... } @ args:
|
|
|
|
|
|
|
|
let
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "5.13.12";
|
2021-08-05 21:33:18 +00:00
|
|
|
release = "1";
|
|
|
|
suffix = "xanmod${release}-cacule";
|
2021-04-08 16:26:57 +00:00
|
|
|
in
|
2021-05-28 09:39:13 +00:00
|
|
|
buildLinux (args // rec {
|
|
|
|
inherit version;
|
2021-06-28 23:13:55 +00:00
|
|
|
modDirVersion = "${version}-${suffix}";
|
2021-04-08 16:26:57 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xanmod";
|
|
|
|
repo = "linux";
|
|
|
|
rev = modDirVersion;
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "sha256-cuZ8o0Ogi2dg4kVoFv4aqThRPDVI271i+DVw5Z4R7Kg=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
structuredExtraConfig = with lib.kernel; {
|
|
|
|
# Preemptive Full Tickless Kernel at 500Hz
|
|
|
|
PREEMPT_VOLUNTARY = lib.mkForce no;
|
|
|
|
PREEMPT = lib.mkForce yes;
|
|
|
|
NO_HZ_FULL = yes;
|
|
|
|
HZ_500 = yes;
|
|
|
|
|
|
|
|
# Google's Multigenerational LRU Framework
|
|
|
|
LRU_GEN = yes;
|
|
|
|
LRU_GEN_ENABLED = yes;
|
|
|
|
|
|
|
|
# Google's BBRv2 TCP congestion Control
|
|
|
|
TCP_CONG_BBR2 = yes;
|
|
|
|
DEFAULT_BBR2 = yes;
|
|
|
|
|
|
|
|
# FQ-PIE Packet Scheduling
|
|
|
|
NET_SCH_DEFAULT = yes;
|
|
|
|
DEFAULT_FQ_PIE = yes;
|
|
|
|
|
|
|
|
# Graysky's additional CPU optimizations
|
|
|
|
CC_OPTIMIZE_FOR_PERFORMANCE_O3 = yes;
|
|
|
|
|
|
|
|
# Android Ashmem and Binder IPC Driver as module for Anbox
|
|
|
|
ASHMEM = module;
|
|
|
|
ANDROID = yes;
|
|
|
|
ANDROID_BINDER_IPC = module;
|
|
|
|
ANDROID_BINDERFS = module;
|
|
|
|
ANDROID_BINDER_DEVICES = freeform "binder,hwbinder,vndbinder";
|
2021-08-11 14:56:57 +00:00
|
|
|
|
|
|
|
# Futex WAIT_MULTIPLE implementation for Wine / Proton Fsync.
|
|
|
|
# Futex2 interface compatible w/ latest Wine / Proton Fsync.
|
|
|
|
FUTEX = yes;
|
|
|
|
FUTEX2 = yes;
|
|
|
|
FUTEX_PI = yes;
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
2021-04-08 16:26:57 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
extraMeta = {
|
2021-07-14 22:03:04 +00:00
|
|
|
branch = "5.13-cacule";
|
2021-08-08 23:34:03 +00:00
|
|
|
maintainers = with lib.maintainers; [ fortuneteller2k lovesegfault ];
|
2021-05-28 09:39:13 +00:00
|
|
|
description = "Built with custom settings and new features built to provide a stable, responsive and smooth desktop experience";
|
2021-06-28 23:13:55 +00:00
|
|
|
broken = stdenv.isAarch64;
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
} // (args.argsOverride or { }))
|