-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathREADME_Kernel-n975f.txt
28 lines (26 loc) · 1.93 KB
/
README_Kernel-n975f.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 ..
- toolchain/gcc-cfp/gcc-cfp-jopp-only/aarch64-linux-android-4.9/bin/aarch64-linux-android-
- toolchain/clang/host/linux-x86/clang-4639204-cfp-jopp/bin/aarch64-linux-gnu-
- edit Makefile
edit "CROSS_COMPILE" to right toolchain path(You downloaded).
EX) CROSS_COMPILE=<android platform directory you download>/android/prebuilts/gcc-cfp/gcc-cfp-jopp-only/aarch64-linux-android-4.9/bin/aarch64-linux-android-
EX) CROSS_COMPILE=/usr/local/toolchain/gcc-cfp/gcc-cfp-jopp-only/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-4639204-cfp-jopp/bin/clang
EX) CC=/usr/local/toolchain/clang/host/linux-x86/clang-4639204-cfp-jopp/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-4639204-cfp-jopp/bin/aarch64-linux-gnu-
EX) CLANG_TRIPLE=/usr/local/toolchain/clang/host/linux-x86/clang-4639204-cfp-jopp/bin/aarch64-linux-gnu- // check the location of toolchain
- to Build
$ export ANDROID_MAJOR_VERSION=q
$ make ARCH=arm64 exynos9820-d2s_defconfig
$ make ARCH=arm64
2. Output files
- Kernel : arch/arm64/boot/Image
- module : drivers/*/*.ko
3. How to Clean
$ make clean
################################################################################