-
Notifications
You must be signed in to change notification settings - Fork 0
/
README_Kernel.txt
32 lines (27 loc) · 1.53 KB
/
README_Kernel.txt
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
################################################################################
1. How to Build
- get Toolchain
From android git serveru, codesourcery and etc ..
- gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
- llvm-arm-toolchain-ship/10.0/bin/clang
- make output folder
EX) OUTPUT_DIR=out
$ mkdir out
- edit Makefile
edit "CROSS_COMPILE" to right toolchain path(You downloaded).
EX) CROSS_COMPILE=<android platform directory you download>/android/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
Ex) CROSS_COMPILE=/usr/local/toolchain/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- // check the location of toolchain
- to Build
$ export ARCH=arm64
$ make -C $(pwd) O=$(pwd)/out P81081_defconfig
$ make -C $(pwd) O=$(pwd)/out DTC_EXT=$(pwd)/tools/dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y \
CC=<android platform directory you download>/android/vendor/qcom/proprietary/llvm-arm-toolchain-ship/10.0/bin/clang \
CLANG_TRIPLE=aarch64-linux-gnu-
2. Output files
- Kernel : arch/arm64/boot/Image
- module : drivers/*/*.ko
3. How to Clean
Change to OUTPUT_DIR folder
EX) /home/dpi/qb5_8814/workspace/P4_1716/android/out/target/product/gto/out
$ make clean
################################################################################