forked from LineageOS/android_kernel_xiaomi_sm6150
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
25 lines (20 loc) · 807 Bytes
/
build.sh
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
export CLANG_PATH=$HOME/toolchains/clang-r530567
export PATH=${CLANG_PATH}/bin:${PATH}
export ARCH=arm64
export KBUILD_BUILD_USER=$(whoami)
export KBUILD_BUILD_HOST=$(hostname)
# Clean the build directory
make clean O=out ARCH=arm64
# Remove any configuration or generated files
make mrproper O=out ARCH=arm64
# Load the configuration file
make O=out ARCH=arm64 vendor/sdmsteppe-perf_defconfig vendor/sweet.config
# Build the kernel
make -j$(nproc --all) \
O=out \
ARCH=arm64 \
LLVM_IAS=1 \
CC="ccache clang" \
LD=ld.lld \
CROSS_COMPILE="$HOME/toolchains/arm-gnu-toolchain-14.2.rel1-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-" \
CROSS_COMPILE_ARM32="$HOME/toolchains/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-"