-
Notifications
You must be signed in to change notification settings - Fork 18
/
MMI-RTAS31.68-34-2
39 lines (26 loc) · 1.23 KB
/
MMI-RTAS31.68-34-2
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
30
31
32
33
34
35
36
37
38
39
##MMI-RTAS31.68-34-2 For Moto Java
Download prebuilts folder from Android distribution. Move it to $my_top_dir
For example:
mkdir -vp $my_top_dir/prebuilts/gcc/linux-x86/aarch64
cd $my_top_dir/prebuilts/gcc/linux-x86/aarch64
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
mkdir -vp $my_top_dir/prebuilts/clang/host
cd $my_top_dir/prebuilts/clang/host
git clone https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86
cd $my_top_dir
Download kernel source code.
create kernel_build.sh file. The content is as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh
cross_path=$PWD/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
cc_path=$PWD/prebuilts/clang/host/linux-x86/clang-r383902b/bin/clang
ld_path=$PWD/prebuilts/clang/host/linux-x86/clang-r383902b/bin/ld.lld
cd kernel4.14
mkdir out
export ARCH=arm64
export SUBARCH=arm64
export CLANG_TRIPLE=aarch64-linux-gnu-
make O=out ARCH=arm64 CC=$cc_path LD=$ld_path sprd_sharkl5Pro_defconfig
make -j1 O=out ARCH=arm64 CC=$cc_path LD=$ld_path CROSS_COMPILE=$cross_path
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The command to execute kernel_build.sh file is :sh kernel_build.sh