forked from ianmacd/a71
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_a715f
executable file
·31 lines (22 loc) · 1.14 KB
/
build_a715f
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
#!/bin/bash -x
export PATH="$(pwd)/gcc/bin:$(pwd)/proton-clang/bin:$PATH"
export ARCH=arm64
export CCACHE="$(which ccache)"
export CCACHE_COMPRESS="1"
export USE_CCACHE="1"
ccache -M 50G
ccache -s
BUILD_CROSS_COMPILE=aarch64-linux-android-
KERNEL_LLVM_BIN=clang
CLANG_TRIPLE=aarch64-linux-gnu-
KERNEL_MAKE_ENV="DTC_EXT=$(pwd)/tools/dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y"
# If not cleaning the tree between builds, the following command will be
# required on 2nd and subsequent builds to prevent a huge slowdown of the
# build.
#
# find techpack -type f -name \*.o | xargs rm -f
# make REAL_CC=$KERNEL_LLVM_BIN mrproper
rm -rf out
make O=out -j$(nproc) $KERNEL_MAKE_ENV CROSS_COMPILE=$BUILD_CROSS_COMPILE CC="${CCACHE} $KERNEL_LLVM_BIN" REAL_CC="${CCACHE} $KERNEL_LLVM_BIN" CLANG_TRIPLE=$CLANG_TRIPLE CFP_CC=$KERNEL_LLVM_BIN sm7150_sec_a71_eur_open_defconfig
make O=out -j$(nproc) $KERNEL_MAKE_ENV CROSS_COMPILE=$BUILD_CROSS_COMPILE CC="${CCACHE} $KERNEL_LLVM_BIN" REAL_CC="${CCACHE} $KERNEL_LLVM_BIN" CLANG_TRIPLE=$CLANG_TRIPLE CFP_CC=$KERNEL_LLVM_BIN
$(pwd)/tools/mkdtimg create out/arch/arm64/boot/dtbo.img --page_size=4096 $(find out/arch -name "*.dtbo")