-
Notifications
You must be signed in to change notification settings - Fork 2
/
README_Kernel.txt
29 lines (23 loc) · 1.06 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
################################################################################
1. How to Build
- get Toolchain
From android git server , codesourcery and etc ..
- aarch64-linux-android-4.9
- 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/aarch64-linux-android-4.9/bin/aarch64-linux-android- // check the location of toolchain
$ export ARCH=arm64
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-mno-android starqlte_usa_single_defconfig
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-mno-android
2. Output files
- Kernel : out/arch/arm64/boot/Image
- module : out/drivers/*/*.ko
3. How to Clean
Change to OUTPUT_DIR folder
EX) $(pwd)/out
$ make clean
################################################################################