-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.config.common
36 lines (34 loc) · 1.19 KB
/
build.config.common
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
ARCH=arm64
BRANCH=android-msm-marlin-3.18
CROSS_COMPILE=aarch64-linux-android-
CROSS_COMPILE_ARM32=arm-linux-androideabi-
DEFCONFIG=marlin_defconfig
LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
LINUX_GCC_CROSS_COMPILE_ARM32_PREBUILTS_BIN=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin
LZ4_PREBUILTS_BIN=prebuilts-master/misc/linux-x86/lz4
function compression_tool_and_files() {
local method=$1
if [ "$method" == "lz4" ]; then
FILES="
arch/arm64/boot/Image.lz4-dtb
vmlinux
System.map
compile.json
.config
"
elif [ "$method" == "gz" ]; then
FILES="
arch/arm64/boot/Image.gz-dtb
arch/arm64/boot/Image.gz-dtb.marlin
arch/arm64/boot/Image.gz-dtb.sailfish
vmlinux
System.map
.config
"
fi
}
function split_marlin_sailfish_dtb() {
OUT_DIR_BOOT=${OUT_DIR}/arch/${ARCH}/boot
cat ${OUT_DIR_BOOT}/Image.gz `find ${OUT_DIR_BOOT}/dts/ -name \*marlin\*.dtb` > ${OUT_DIR_BOOT}/Image.gz-dtb.marlin
cat ${OUT_DIR_BOOT}/Image.gz `find ${OUT_DIR_BOOT}/dts/ -name \*sailfish\*.dtb` > ${OUT_DIR_BOOT}/Image.gz-dtb.sailfish
}