-
Notifications
You must be signed in to change notification settings - Fork 0
/
README_Kernel.txt
28 lines (22 loc) · 1005 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
27
28
################################################################################
1. How to Build
- get Toolchain
From android git server, codesourcery and etc ..
- aarch64-linux-android-4.9
- clang-r353983c(git clone https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86)
- edit Makefile
edit CROSS_COMPILE to right toolchain path(You downloaded).
Ex) export PATH :=${PATH}:$(android platform directory you download)/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
Ex) export CROSS_COMPILE=aarch64-linux-android-
- put the clang in the right path.
put the clang-r353983c in the $(kernel directory)/../../prebuilts/clang/host/linux-x86 path
$ mkdir ../out
$ make ARCH=arm64 O=../out merge_kirin710_defconfig
$ make ARCH=arm64 O=../out -j8
2. Output files
- Kernel : out/arch/arm64/boot/Image.gz
- module : out/drivers/*/*.ko
3. How to Clean
$ make ARCH=arm64 distclean
$ rm -rf out
################################################################################