-
Notifications
You must be signed in to change notification settings - Fork 27
/
settings.cfg
407 lines (357 loc) · 13.2 KB
/
settings.cfg
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
# WARNING: do not edit this file !
# Use a copy: cp etc/settings.cfg etc/user.cfg
###--------------------------------------------------------------###
### ZMB GENERAL SETTINGS ###
###--------------------------------------------------------------###
# TEXT EDITOR
# Use your favorite text editor to edit Makefile
# ===============================================
EDITOR="vi"
# LANGUAGE
# Your language will be used by default if already translated.
# To force another language use the corresponding language code
# ==============================================================
LANGUAGE="default"
# TIMEZONE (e.g. "America/NewYork")
# To set the time in your timezone
# Auto-detected while set to: "default"
# ======================================
TIMEZONE="default"
# BUILDER NAME (displayed in proc/version)
# The output of <whoami> will be used while set to: "default"
# ============================================================
BUILDER="default"
# BUILDER HOST (displayed in proc/version)
# The output of <hostname> will be used while set to: "default"
# =============================================================
HOST="default"
# TELEGRAM API CONFIGURATION (hello @BotFather)
# Who the F* wants to get real time kernel build
# status with ZIP sending in Telegram group or channel?
# ======================================================
TELEGRAM_CHAT_ID=""
TELEGRAM_BOT_TOKEN=""
TELEGRAM_API="https://api.telegram.org"
###--------------------------------------------------------------###
### ANDROID DEVICE SETTINGS ###
###--------------------------------------------------------------###
# KERNEL TAG
# The name of your kernel
# ========================
TAG="ZenMax"
# KERNEL VARIANT
# Stable | ZMB | Nethunter
# =========================
KERNEL_VARIANT="ZMB"
# TARGET ARCHITECTURE
# arm64 | x86_64 | x86
# =====================
ARCH="arm64"
# DEVICE CODENAME (e.g. "X00TD")
# The question will be asked while set to: "default"
# ===================================================
CODENAME="default"
# ANDROID KERNEL DIRECTORY
# The question will be asked while set to: "default"
# ===================================================
KERNEL_DIR="default"
# TOOLCHAIN COMPILER
# The question will be asked while set to: "default"
# AOSP-Clang | Eva-GCC | Proton-Clang | Proton-GCC
# Neutron-Clang | Neutron-GCC | Lineage-GCC | Host-Clang
# =======================================================
COMPILER="default"
# ANDROID VERSION
# This setting is optional but it could be required
# by some kernels. This will be exported while not
# found in Makefile or while IGNORE_MAKEFILE is True
# ===================================================
IGNORE_MAKEFILE="False"
PLATFORM_VERSION="10"
ANDROID_MAJOR_VERSION="q"
# FILES TO BE INCLUDED into the KERNEL ZIP
# They will be added to AK3 while they are found
# in the kernel compilation BOOT folder, which is:
# ==> ZenMaxBuilder/out/<codename>/arch/<arch>/boot
# ===================================================
INCLUDED=(init.spectrum.rc dtbo.img dts/qcom/sm8150-v2.dtb dts/qcom/sm8150-erofs.dtb)
###--------------------------------------------------------------###
### TOOLCHAINS SETTINGS: do not edit if you are not sure ! ###
###--------------------------------------------------------------###
# LINKER CHECK
# Ensures host supports selected toolchain
# =========================================
HOST_LINKER="True"
# LINK TIME OPTIMIZATION (LTO)
# Make sure to use a compatible compiler
# WARNING: LTO_LIBRARY will be used as LD
# ========================================
LTO="False"
LTO_LIBRARY="ld.lld"
# LLVM/CLANG FLAGS
# Make sure to use a compatible compiler
# =======================================
LLVM_FLAGS="False"
LLVM=1
LLVM_IAS=1
# MAKE COMMAND-LINE ARGUMENTS
# The toolchains settings defined below will
# be passed to make as command-line arguments
# ============================================
MAKE_CMD_ARGS="True"
# [!] WARNING: toolchains compiler options
# You can append desired options but DO NOT CHANGE LIST ORDER !
# AOSP-CLANG OPTIONS (Clang/LLVM prebuilts)
# ==========================================
AOSP_CLANG_NAME="AOSP-Clang"
AOSP_CLANG_OPTIONS=(
SUBARCH=$ARCH
CROSS_COMPILE="aarch64-linux-android-"
CROSS_COMPILE_ARM32="arm-linux-androideabi-"
CC="clang"
AR="llvm-ar"
AS="llvm-as"
NM="llvm-nm"
LD="aarch64-linux-android-ld"
STRIP="aarch64-linux-android-strip"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
OBJSIZE="llvm-size"
READELF="aarch64-linux-android-readelf"
HOSTCC="clang"
HOSTCXX="clang++"
HOSTAR="llvm-ar"
CLANG_TRIPLE="aarch64-linux-gnu-")
# EVA-GCC OPTIONS (Bleeding Edge Bare Metal GCC)
# ===============================================
EVA_GCC_NAME="Eva-GCC"
EVA_GCC_OPTIONS=(
SUBARCH=$ARCH
CROSS_COMPILE="aarch64-elf-"
CROSS_COMPILE_ARM32="arm-eabi-"
CC="aarch64-elf-gcc"
AR="aarch64-elf-ar"
AS="aarch64-elf-as"
NM="aarch64-elf-nm"
LD="aarch64-elf-ld"
STRIP="aarch64-elf-strip"
OBJCOPY="aarch64-elf-objcopy"
OBJDUMP="aarch64-elf-objdump"
OBJSIZE="aarch64-elf-size"
READELF="aarch64-elf-readelf"
HOSTCC="aarch64-elf-gcc"
HOSTCXX="aarch64-elf-g++"
HOSTAR="aarch64-elf-ar")
# NEUTRON-CLANG OPTIONS (Bleeding Edge Bare Metal LLVM)
# ======================================================
NEUTRON_CLANG_NAME="Neutron-Clang"
NEUTRON_CLANG_OPTIONS=(
SUBARCH=$ARCH
CROSS_COMPILE="aarch64-linux-gnu-"
CROSS_COMPILE_ARM32="arm-linux-gnueabi-"
CC="clang"
AR="aarch64-linux-gnu-ar"
AS="aarch64-linux-gnu-as"
NM="aarch64-linux-gnu-nm"
LD="aarch64-linux-gnu-ld"
STRIP="aarch64-linux-gnu-strip"
OBJCOPY="aarch64-linux-gnu-objcopy"
OBJDUMP="aarch64-linux-gnu-objdump"
OBJSIZE="aarch64-linux-gnu-size"
READELF="aarch64-linux-gnu-readelf"
HOSTCC="clang"
HOSTCXX="clang++"
HOSTAR="aarch64-linux-gnu-ar"
CLANG_TRIPLE="aarch64-linux-gnu-")
# PROTON-CLANG OPTIONS (Clang/LLVM prebuilts by kdrag0n)
# =======================================================
PROTON_CLANG_NAME="Proton-Clang"
PROTON_CLANG_OPTIONS=(
SUBARCH=$ARCH
CROSS_COMPILE="aarch64-linux-gnu-"
CROSS_COMPILE_ARM32="arm-linux-gnueabi-"
CC="clang"
AR="aarch64-linux-gnu-ar"
AS="aarch64-linux-gnu-as"
NM="aarch64-linux-gnu-nm"
LD="aarch64-linux-gnu-ld"
STRIP="aarch64-linux-gnu-strip"
OBJCOPY="aarch64-linux-gnu-objcopy"
OBJDUMP="aarch64-linux-gnu-objdump"
OBJSIZE="aarch64-linux-gnu-size"
READELF="aarch64-linux-gnu-readelf"
HOSTCC="clang"
HOSTCXX="clang++"
HOSTAR="aarch64-linux-gnu-ar"
CLANG_TRIPLE="aarch64-linux-gnu-")
# LINEAGE-GCC OPTIONS (LineageOS GCC prebuilts)
# ==============================================
LOS_GCC_NAME="Lineage-GCC"
LOS_GCC_OPTIONS=(
SUBARCH=$ARCH
CROSS_COMPILE="aarch64-linux-android-"
CROSS_COMPILE_ARM32="arm-linux-android-eabi-"
CC="aarch64-linux-android-gcc"
AR="aarch64-linux-android-ar"
AS="aarch64-linux-android-as"
LD="aarch64-linux-android-ld"
NM="aarch64-linux-android-nm"
STRIP="aarch64-linux-android-strip"
OBJCOPY="aarch64-linux-android-objcopy"
OBJDUMP="aarch64-linux-android-objdump"
OBJSIZE="aarch64-linux-android-size"
READELF="aarch64-linux-android-readelf"
HOSTCC="aarch64-linux-android-gcc"
HOSTCXX="aarch64-linux-android-g++"
HOSTAR="aarch64-linux-android-ar")
# NEUTRON-GCC OPTIONS (Neutron-Clang vs Eva-GCC)
# ===============================================
NEUTRON_GCC_NAME="Neutron-GCC"
NEUTRON_GCC_OPTIONS=(
SUBARCH=$ARCH
CROSS_COMPILE="aarch64-linux-gnu-"
CROSS_COMPILE_ARM32="arm-linux-gnueabi-"
CC="clang"
AR="llvm-ar"
AS="llvm-as"
NM="llvm-nm"
LD="aarch64-linux-gnu-ld"
STRIP="llvm-strip"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
OBJSIZE="llvm-size"
READELF="llvm-readelf"
HOSTCC="clang"
HOSTCXX="clang++"
HOSTAR="llvm-ar"
CLANG_TRIPLE="aarch64-linux-gnu-")
# PROTON-GCC OPTIONS (Proton-Clang vs Eva-GCC)
# =============================================
PROTON_GCC_NAME="Proton-GCC"
PROTON_GCC_OPTIONS=(
SUBARCH=$ARCH
CROSS_COMPILE="aarch64-linux-gnu-"
CROSS_COMPILE_ARM32="arm-linux-gnueabi-"
CC="clang"
AR="llvm-ar"
AS="llvm-as"
NM="llvm-nm"
LD="aarch64-linux-gnu-ld"
STRIP="llvm-strip"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
OBJSIZE="llvm-size"
READELF="llvm-readelf"
HOSTCC="clang"
HOSTCXX="clang++"
HOSTAR="llvm-ar"
CLANG_TRIPLE="aarch64-linux-gnu-")
# HOST-CLANG OPTIONS (System host Clang/LLVM)
# ============================================
HOST_CLANG_NAME="Host-Clang"
HOST_CLANG_OPTIONS=(
SUBARCH=$ARCH
CROSS_COMPILE="aarch64-linux-gnu-"
CROSS_COMPILE_ARM32="arm-none-eabi-"
CC="clang"
AR="aarch64-linux-gnu-ar"
AS="aarch64-linux-gnu-as"
NM="aarch64-linux-gnu-nm"
LD="aarch64-linux-gnu-ld"
STRIP="aarch64-linux-gnu-strip"
OBJCOPY="aarch64-linux-gnu-objcopy"
OBJDUMP="aarch64-linux-gnu-objdump"
OBJSIZE="aarch64-linux-gnu-size"
READELF="aarch64-linux-gnu-readelf"
HOSTCC="clang"
HOSTCXX="clang++"
HOSTAR="aarch64-linux-gnu-ar"
CLANG_TRIPLE="aarch64-linux-gnu-")
###--------------------------------------------------------------###
### ADVANCED SETTINGS: do not edit if you are not sure ! ###
###--------------------------------------------------------------###
# AK3 BANNER (from <docs/ak3/banner>)
# You can use yours or simply deactivate
# =======================================
AK3_BANNER="True"
AK3_BANNER_FILE="docs/ak3/banner"
# ZENMAXBUILDER (master branch)
# ==============================
ZMB_BRANCH="zmb"
# [!] WARNING: ZMB will search for the DIR of each repository
# defined below and offer to install it if it cannot be found
# Remember to move/rename your folders according to...
# ANYKERNEL3 (fork of osm0sis updated every 15min)
# =================================================
ANYKERNEL_DIR="AnyKernel"
ANYKERNEL_URL="https://github.com/grm34/AnyKernel3.git"
ANYKERNEL_BRANCH="ZenMaxBuilder"
# NEUTRON-CLANG (prebuilts by dakkshesh07 [gitlab])
# ==================================================
NEUTRON_DIR="neutron-clang"
NEUTRON_URL="https://gitlab.com/dakkshesh07/neutron-clang.git"
NEUTRON_BRANCH="main"
NEUTRON_VERSION="neutron-clang/lib/clang"
NEUTRON_CHECK="neutron-clang/bin/clang-16"
# PROTON-CLANG (fork of kdrag0n updated every 15min)
# ===================================================
PROTON_DIR="proton-clang"
PROTON_URL="https://github.com/grm34/proton-clang.git"
PROTON_BRANCH="ZenMaxBuilder"
PROTON_VERSION="proton-clang/lib/clang"
PROTON_CHECK="proton-clang/bin/clang"
# EVA GCC-ARM64 (fork of mvaisakh updated every 15min)
# =====================================================
EVA_ARM64_DIR="eva-arm64"
EVA_ARM64_URL="https://github.com/grm34/gcc-arm64.git"
EVA_ARM64_BRANCH="ZenMaxBuilder"
EVA_ARM64_VERSION="eva-arm64/lib/gcc/aarch64-elf"
EVA_ARM64_CHECK="eva-arm64/bin/aarch64-elf-gcc"
# EVA GCC-ARM (fork of mvaisakh updated every 15min)
# ===================================================
EVA_ARM_DIR="eva-arm"
EVA_ARM_URL="https://github.com/grm34/gcc-arm.git"
EVA_ARM_BRANCH="ZenMaxBuilder"
EVA_ARM_VERSION="eva-arm/lib/gcc/arm-eabi"
EVA_ARM_CHECK="eva-arm/bin/arm-eabi-gcc"
# LOS GCC-ARM64 (fork of LineageOS updated every 15min)
# ======================================================
LOS_ARM64_DIR="los-arm64"
LOS_ARM64_URL="https://github.com/grm34/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9.git"
LOS_ARM64_BRANCH="ZenMaxBuilder"
LOS_ARM64_VERSION="los-arm64/lib/gcc/aarch64-linux-android"
LOS_ARM64_CHECK="los-arm64/bin/real-aarch64-linux-android-gcc"
# LOS GCC-ARM (fork of LineageOS updated every 15min)
# ====================================================
LOS_ARM_DIR="los-arm"
LOS_ARM_URL="https://github.com/grm34/android_prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.9.git"
LOS_ARM_BRANCH="ZenMaxBuilder"
LOS_ARM_VERSION="los-arm/lib/gcc/arm-linux-androideabi"
LOS_ARM_CHECK="los-arm/bin/real-arm-linux-androideabi-gcc"
# AOSP CLANG (the latest tag will always be used as default)
# ===========================================================
AOSP_CLANG_DIR="aosp-clang"
AOSP_CLANG_URL="https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/refs/heads/master"
AOSP_CLANG_BRANCH="master"
AOSP_CLANG_VERSION="aosp-clang/AndroidVersion.txt"
AOSP_CLANG_CHECK="aosp-clang/bin/clang-check"
# LLVM ARM64 (the latest tag will always be used as default)
# ===========================================================
LLVM_ARM64_DIR="llvm-arm64"
LLVM_ARM64_URL="https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/+refs"
LLVM_ARM64_BRANCH="master"
LLVM_ARM64_VERSION="llvm-arm64/AndroidVersion.txt"
LLVM_ARM64_CHECK="llvm-arm64/bin/aarch64-linux-android-gcc-ar"
# LLVM ARM (the latest tag will always be used as default)
# =========================================================
LLVM_ARM_DIR="llvm-arm"
LLVM_ARM_URL="https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/+refs"
LLVM_ARM_BRANCH="master"
LLVM_ARM_VERSION="llvm-arm/AndroidVersion.txt"
LLVM_ARM_CHECK="llvm-arm/bin/arm-linux-androideabi-gcc-ar"
# LINUX STABLE (to get the latest Linux Stable tag)
# ==================================================
LINUX_STABLE="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git"
# PHONE API (to get device specifications)
# ==================================================
PHONE_API="https://phone-specs-api.azharimm.dev/search?query="