-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_kernel.sh
More file actions
executable file
·32 lines (30 loc) · 970 Bytes
/
build_kernel.sh
File metadata and controls
executable file
·32 lines (30 loc) · 970 Bytes
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
#!/bin/bash
export PATH=$PWD/prebuilts/clang/host/linux-x86/clang-r383902/bin/:$PATH
export PATH=$PWD/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/:$PATH
cd kernel-4.19
rm -rf out/*
make ARCH=arm64 \
CROSS_COMPILE=aarch64-linux-androidkernel- \
CLANG_TRIPLE=aarch64-linux-gnu- \
LD=ld.lld \
LD_LIBRARY_PATH=$PWD/prebuilts/clang/host/linux-x86/clang-r383902/lib64: \
NM=llvm-nm \
OBJCOPY=llvm-objcopy \
CC=clang \
ROOTDIR=$PWD \
O=out \
amar_prc_wifi_com_defconfig \
2>&1|tee ../kernel_build.log
make ARCH=arm64 \
CROSS_COMPILE=aarch64-linux-androidkernel- \
CLANG_TRIPLE=aarch64-linux-gnu- \
LD=ld.lld \
LD_LIBRARY_PATH=$PWD/prebuilts/clang/host/linux-x86/clang-r383902/lib64: \
NM=llvm-nm \
OBJCOPY=llvm-objcopy \
CC=clang \
ROOTDIR=$PWD \
O=out \
-j$(nproc --all) \
CONFIG_DEBUG_SECTION_MISMATCH=y \
2>&1|tee -a ../kernel_build.log \