forked from xddxdd/nix-kernelsu-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkernels.nix
128 lines (122 loc) · 4.2 KB
/
kernels.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
_: {
perSystem =
{ pkgs, ... }:
let
sources = pkgs.callPackage _sources/generated.nix { };
in
{
kernelsu = {
amazon-fire-hd-karnak = {
anyKernelVariant = "osm0sis";
enableKernelSU = false;
kernelDefconfigs = [ "lineageos_karnak_defconfig" ];
kernelImageName = "Image.gz-dtb";
kernelMakeFlags = [
"KCFLAGS=\"-w\""
"KCPPFLAGS=\"-w\""
];
kernelSrc = sources.linux-amazon-karnak.src;
oemBootImg = boot/amazon-fire-hd-karnak.img;
};
moto-rtwo-lineageos-21 = {
anyKernelVariant = "kernelsu";
clangVersion = "latest";
kernelDefconfigs = [
"gki_defconfig"
"vendor/kalama_GKI.config"
"vendor/ext_config/moto-kalama.config"
"vendor/ext_config/moto-kalama-gki.config"
"vendor/ext_config/moto-kalama-rtwo.config"
];
kernelImageName = "Image";
kernelMakeFlags = [
"KCFLAGS=\"-w\""
"KCPPFLAGS=\"-w\""
];
kernelSrc = sources.linux-moto-rtwo-lineageos-21.src;
};
moto-rtwo-lineageos-22_1 = {
anyKernelVariant = "kernelsu";
clangVersion = "latest";
kernelDefconfigs = [
"gki_defconfig"
"vendor/kalama_GKI.config"
"vendor/ext_config/moto-kalama.config"
"vendor/ext_config/moto-kalama-gki.config"
"vendor/ext_config/moto-kalama-rtwo.config"
];
kernelImageName = "Image";
kernelMakeFlags = [
"KCFLAGS=\"-w\""
"KCPPFLAGS=\"-w\""
];
kernelSrc = sources.linux-moto-rtwo-lineageos-22_1.src;
};
oneplus-8t-blu-spark = {
anyKernelVariant = "osm0sis";
clangVersion = "latest";
kernelDefconfigs = [ "blu_spark_defconfig" ];
kernelImageName = "Image";
kernelSrc = sources.linux-oneplus-8t-blu-spark.src;
kernelConfig = ''
CONFIG_STACKPROTECTOR=n
CONFIG_LTO_CLANG=y
'';
};
moto-pstar-lineageos-22_0 = {
anyKernelVariant = "kernelsu";
clangVersion = "custom";
enableGcc64 = true;
enableGcc32 = true;
enableLLVM = false;
# clangPrebuilt = "android_prebuilts_clang_kernel_linux-x86_clang-r416183b";
customGoogleClang = {
CLANG_VERSION = "r416183b1";
CLANG_BRANCH = "android12-release";
CLANG_SHA256 = "1zg1cm8zn8prawgz3h1qnapxrgkmj894pl10i1q11nfcv3ycic41";
};
kernelDefconfigs = [
# separated configs
#"vendor/kona-perf_defconfig"
#"vendor/ext_config/moto-kona.config"
#"vendor/ext_config/pstar-default.config"
#"vendor/debugfs.config"
# the one which need to be generated before build
#"lineageos_pstar_defconfig"
# the one which extract from a real device
"lineageos_pstar_stock_defconfig"
];
kernelImageName = "Image";
kernelMakeFlags = [
"KCFLAGS=\"-w\""
"KCPPFLAGS=\"-w\""
"LOCALVERSION=-official-kernelsu"
];
kernelSrc = sources.linux-moto-pstar-lineageos-22_0.src;
oemBootImg = sources.lineage-nightly-pstar_bootImg.src;
};
ztc1997-android_gki_kernel_5-10_common = {
anyKernelVariant = "osm0sis";
clangVersion = "gki";
gkiVersion = "android12-5.10";
kernelDefconfigs = [ "gki_defconfig" ];
kernelImageName = "Image";
kernelSrc = sources.ztc1997-android_gki_kernel_5-10_common.src;
kernelConfig = ''
CONFIG_LTO_CLANG=y
'';
};
ztc1997-android_gki_kernel_5-15_common = {
anyKernelVariant = "osm0sis";
clangVersion = "gki";
gkiVersion = "android13-5.15";
kernelDefconfigs = [ "gki_defconfig" ];
kernelImageName = "Image";
kernelSrc = sources.ztc1997-android_gki_kernel_5-15_common;
kernelConfig = ''
CONFIG_LTO_CLANG=y
'';
};
};
};
}