-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
94 lines (75 loc) · 4.15 KB
/
config
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
#!/bin/bash
#########################################################################################################################
#########################################################################################################################
# Default paths
BUILD_DIR="${HOME}/Advanced_kernel_builder_script"
OUT="$BUILD_DIR/.out" # don't touch
AnyKernel2="$BUILD_DIR/AnyKernel2" # don't touch
AnyKernel2_TMP="$BUILD_DIR/.AnyKernel2" # don't touch
# Kernel source git link
KSOURCE_GIT="https://github.com/OrdenKrieger/android_kernel_zte_msm8996.git -b radioactive"
# Kernel
VER="V1.1.5_axon7"
BASE_VER="Radioactive"
KERNEL_DIR="${HOME}/lineage/kernel/zte/msm8996"
KERNEL_ARCH="arm64"
KERNEL_DEFCONFIG="lineageos_axon7_defconfig"
TOOLCHAIN_DIR="${HOME}/lineage/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-"
# Name of kernel image output (e.g. Image.gz-dtb, zImage)
KERNEL_IMAGE="Image.gz-dtb"
# Zip output
ZIP_MOVE="$BUILD_DIR/releases"
#########################################################################################################################
#########################################################################################################################
# AnyKernel2 props
AK_KERNEL_STRING="$BASE_VER-$VER"
# AK_DEVICECHECK=1
# Specified requires at least device.name1 to be present
# This should match ro.product.device or ro.build.product for your device
# There is support for up to 5 device.name# properties
AK_DEVICECHECK="0"
AK_NAME1=""
AK_NAME2=""
AK_NAME3=""
AK_NAME4=""
AK_NAME5=""
# AK_MODULES=1
# Will push the contents of the module directory to the same location relative to root (/) and apply 644 permissions
AK_MODULES="0"
# AK_CLEANUP=0
# Will keep the zip from removing it's working directory in /tmp/anykernel
# This can be useful if trying to debug in adb shell whether the patches worked correctly
AK_CLEANUP="1"
# AK_CLEANUPONABORT=0
# Will keep the zip from removing it's working directory in /tmp/anykernel in case of installation abort.
AK_CLEANUPONABORT="1"
# AK_BLOCK=auto
# Instead of a direct block filepath enables detection of the device boot partition for use with broad, device non-specific zips
# Also accepts specifically boot or recovery
AK_BLOCK="auto"
# AK_IS_SLOT_DEVICE=1
# Enables detection of the suffix for the active boot partition on slot-based devices and will add this to the end of the supplied block= path
# Also accepts auto for use with broad, device non-specific zips
AK_IS_SLOT_DEVICE="0"
# AK_RAMDISK_COMPRESSION=auto
# Allows automatically repacking the ramdisk with the format detected during unpack, changing auto to gz, lzo, lzma, xz, bz2, lz4, or lz4-l (for lz4 legacy) instead forces the repack as that format
AK_RAMDISK_COMPRESSION="auto"
# AK_SUPPORTED_VERSIONS=""
# will match against ro.build.version.release from the current ROM's build.prop. It can be set to a list or range. As a list, e.g. 7.1.2 or 8.1.0, 9 it will look for exact matches, as a range, e.g. 7.1.2 - 9 it will check to make sure the current version falls within those limits. Whitespace optional, and supplied version values should be in the same number format they are in the build.prop value for that Android version.
AK_SUPPORTED_VERSIONS=""
#########################################################################################################################
#########################################################################################################################
# AKBS headline
HEADLINE_TXT="Advanced kernel builder script by OrdenKrieger"
# Enable/Disable output folder cleanup dialog
OUTPUT_EMPTY_CHECK="1"
# Enable/Disable colors for the build
COLOR_BUILD_PROCESS="1"
TERMINAL_BACKGROUND_COLOR="\e[40m"
TERMINAL_TEXT_COLOR="\e[1;34m"
# Enable/Disable clear kernel build history (ONLY ON SUCCESS; on error not for debug)
CLEAR_ON_SUCCESS="1"
# Enable/Disable clean up of build folders (ONLY ON SUCCESS; on error not for debug)
OUTPUT_CLEAN_UP="1"
#########################################################################################################################
#########################################################################################################################