-
Notifications
You must be signed in to change notification settings - Fork 1
/
README_Kernel.txt
29 lines (26 loc) · 1.77 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
get the proper toolchain packages from AOSP or CodeSourcery or ETC.
- 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
edit "CLANG" to right path(You downloaded).
EX) CC=<android platform directory you download>/android/prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang
EX) CC=/usr/local/toolchain/clang/host/linux-x86/clang-r353983c/bin/clang // check the location of toolchain
edit "CLANG_TRIPLE" to right path(You downloaded).
EX) CLANG_TRIPLE=<android platform directory you download>/android/prebuilts/clang/host/linux-x86/clang-r353983c/bin/aarch64-linux-gnu-
EX) CLANG_TRIPLE=/usr/local/toolchain/clang/host/linux-x86/clang-r353983c/bin/aarch64-linux-gnu- // check the location of toolchain
- to Build
$ export PLATFORM_VERSION=12
$ export ANDROID_MAJOR_VERSION=s
$ export ARCH=arm64
$ make exynos850-a21snsxx_defconfig
$ make
2. Output files
- Kernel : arch/arm64/boot/Image
- module : drivers/*/*.ko
3. How to Clean
$ make clean
################################################################################