-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-anykernel.cfg
executable file
·93 lines (81 loc) · 3.17 KB
/
build-anykernel.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
###############################################################################################
# build-anykernel.sh Configure File. (C) 2016 Updated: 12/07/2016 #
# #
# This Is The Configure File That User Edits To Match His/Her Needs #
# #
###############################################################################################
## Main Kernel Paths ##
KERNEL_DIR=`pwd`
# Name of the Directory the kernel is in #
MAIN_REP_DIR_NAME="kernel_caf_LG"
# Name of the Output Directory ""
OUTPUT_DIR="out"
# Were is the location of your defconfigs #
DEFCONFIGS="${HOME}/Builds/kernel/LG/${MAIN_REP_DIR_NAME}/arch/arm64/configs"
# Location of your zImage and or Image Final Builds #
ZIMAGE_DIR="${HOME}/Builds/kernel/LG/${MAIN_REP_DIR_NAME}/${OUTPUT_DIR}/arch/arm64/boot"
## Name Of RamDisk ##
RAMDISK_DIR_NAME="ramdisk"
RAMDISK_DIR="${HOME}/Builds/kernel/LG/${MAIN_REP_DIR_NAME}/${RAMDISK_DIR_NAME}"
## Where to place finished Zips ##
ZIP_FINISHED_DIR_NAME="zips"
ZIP_MOVE="${HOME}/Builds/kernel/${ZIP_FINISHED_DIR_NAME}"
## COPY TO WEBSITE ##
WEBSITE_DIR_NAME="nebula"
COPY_ZIP="${HOME}/public_html/${WEBSITE_DIR_NAME}"
## CrossTool Chain Configs ##
TOOLCHAIN_DIR="${HOME}/Builds/kernel/toolchains"
TC_NAME="aarch64-linux-android-4.9"
TC_PREFIX="aarch64-linux-android-"
# TC_PREFIX="clang"
# TC_PREFIX="aarch64-linux-gnu-"
# TC_PREFIX="arm-none-eabi-"
# TC_PREFIX="aarch64-linux-android-8.x-"
# TC_PREFIX="aarch64-NEBULA-linux-gnueabi-"
# TC_PREFIX="aarch64-GoogleTC_TOOLCHAIN-linux-gnu-"
## DESTRO: Either (UBER) or (LINARO) ##
TC_DESTRO="GoogleTC"
CLANG_NAME="7.0"
## AnyKernel2 Paths ##
IMAGE_FINAL_DIR="anykernel"
REPACK_DIR="${HOME}/Builds/kernel/HTC10-AnyKernel2"
COMPRESSED_IMAGE_DIR="${HOME}/Builds/kernel/HTC10-AnyKernel2"
PATCH_DIR="${HOME}/Builds/kernel/HTC10-AnyKernel2/patch"
MODULES_DIR="${HOME}/Builds/kernel/HTC10-AnyKernel2/modules/system/vendor/lib/modules"
TOOLS_DIR="${HOME}/Builds/kernel/HTC10-AnyKernel2/tools"
RAMDISK_DIR="${HOME}/Builds/kernel/HTC10-AnyKernel2/ramdisk"
DTBTOOL_DIR="${HOME}/Builds/kernel/HTC10-AnyKernel2/tools"
## Misc Paths ##
SIGNAPK="${HOME}/Builds/KERNEL-SOURCE/SignApk/signapk.jar"
SIGNAPK_KEYS="${HOME}/Builds/KERNEL-SOURCE/SignApk"
STAND_ALONE_UCI_DIR="${HOME}/Builds/KERNEL-SOURCE/Synapse-AnyKernel"
# UKM Synapse Details #
UCI_REV=6.3
# Kernel Details
REV=1.0.0-2e
KNAME=Nebula
SET_LOCAL=01
# Devices are seperated with a ';' Example: 1;2;3;4;5;6 #
DEVICES="h872;h870;us997;h918"
#BDATE=$(date +"%Y%m%d")
KVER=$(date +"%Y%m%d_%H%M%S")
# Vars
LOCALVERSION=~`echo $VER`
CROSS_COMPILE=${TOOLCHAIN_DIR}/${TC_DESTRO}/${TC_NAME}/bin/${TC_PREFIX}
STRIP=${TOOLCHAIN_DIR}/${TC_DESTRO}/${TC_NAME}/bin/${TC_PREFIX}strip
ARCH=arm64
SUBARCH=arm64
KBUILD_BUILD_USER=Nebula
KBUILD_BUILD_HOST=team-nebula.cf
CCACHE=ccache
ERROR_LOG="ERRORS"
STRIP_MODULES=1
SIGN_MODULES=1
USE_SCRIPTS=0
SPLIT_DTB=0
DTBTOOL="dtbtoolv3"
VARIANTS="1"
### --- For CLANG Builds --- ###
CLANG_BUILDS=0
CC=${TOOLCHAIN_DIR}/clang/${CLANG_NAME}/bin/clang
CLANG_TRIPLE="aarch64-linux-gnu-"