-
Notifications
You must be signed in to change notification settings - Fork 18
/
MMI-QSB30.62-17.txt
48 lines (26 loc) · 2.01 KB
/
MMI-QSB30.62-17.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
MMI-QSB30.62-17 For Motorola One Action
Kernel Modules:
---------------
Download prebuilts folder from Android distribution. Move it to $my_top_dir
For example:
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
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
Download kernel source code. Rename kernel-* folder to $my_top_dir/kernel
mkdir -p $my_top_dir/out/target/product/generic/obj/kernel/exynos9610
kernel_out_dir=$my_top_dir/out/target/product/generic/obj/kernel/exynos9610
kernel_obj_out_path=$my_top_dir/out/target/product/generic/obj/KERNEL_OBJ
kernel_out_path_generic=$my_top_dir/out/target/product/generic
clang=$my_top_dir/prebuilts/clang/host/linux-x86/clang-4691093/bin/clang
llvm_ar=$my_top_dir/prebuilts/clang/host/linux-x86/clang-4691093/bin/llvm-ar
llvm_dis=$my_top_dir/prebuilts/clang/host/linux-x86/clang-4691093/bin/llvm-dis
lto_llvm=$my_top_dir/prebuilts/clang/host/linux-x86/clang-4691093/lib64/
cross=$my_top_dir/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
cat kernel/exynos9610/arch/arm64/configs/erd9610_Q_defconfig kernel/exynos9610/arch/arm64/configs/exynos9610_user.cfg kernel/exynos9610/arch/arm64/configs/ext_config/moto-erd9610.config kernel/exynos9610/arch/arm64/configs/ext_config/moto-erd9610-troika.config > $kernel_out_dir/mapphone_defconfig
cp $kernel_out_dir/mapphone_defconfig $kernel_out_dir/.config
make -j8 -C kernel/exynos9610 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross defoldconfig
make -j8 -C kernel/exynos9610 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross CLANG_TRIPLE=aarch64-linux-gnu- CC=$clang LLVM_AR=$llvm_ar LLVM_DIS=$llvm_dis LTO_LLVM_LIB_BASE=$lto_llvm -j8
make -j8 -C kernel/exynos9610 ARCH=arm64 CROSS_COMPILE=$aarch64_linux_android_ distclean