-
Notifications
You must be signed in to change notification settings - Fork 10
/
README_Kernel.txt
executable file
·26 lines (21 loc) · 1009 Bytes
/
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
################################################################################
1. How to Build
- get Toolchain
From android git server , codesourcery and etc ..
- aarch64-linux-android-4.9
- 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/aarch64-linux-android-4.9/bin/aarch64-linux-android-
// check the location of toolchain
or
Ex) export CROSS_COMPILE=arm-linux-androideabi-
Ex) export PATH=$PATH:<toolchain_parent_dir>/aarch64-linux-android-4.9/bin
$ make ARCH=arm64 merge_msm8953_64_defconfig
$ make ARCH=arm64 Image.gz-dtb
2. Output files
- Kernel : arch/arm64/boot/Image.gz-dtb
- module : drivers/*/*.o
3. How to Clean
$ make ARCH=arm64 distclean
################################################################################