-
Notifications
You must be signed in to change notification settings - Fork 18
/
MMI-PTA29.401-18.txt
executable file
·35 lines (19 loc) · 1.78 KB
/
MMI-PTA29.401-18.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
MMI-PTA29.401-18 & MMI-PTB29.401-18 for Moto E6 Plus
Kernel Modules:
---------------
Download prebuilts folder from Android distribution. Move it to $my_top_dir
For example:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9
cd arm-linux-androideabi-4.9
git checkout pie-release
cd $my_top_dir
mkdir -p $my_top_dir/prebuilts/gcc/linux-x86/arm
mv arm-linux-androideabi-4.9 $my_top_dir/prebuilts/gcc/linux-x86/arm/.
mkdir -p $my_top_dir/out/target/product/generic/obj/kernel
kernel_out_dir=$my_top_dir/out/target/product/generic/obj/kernel
cross=$my_top_dir/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
( perl -le 'print \"# This file was automatically generated from:\n#\t\" . join(\"\n#\t\", @ARGV) . \"\n\"' kernel/arch/arm/configs/msmcortex-perf_defconfig kernel/arch/arm/configs/ext_config/moto-msmcortex.config kernel/arch/arm/configs/ext_config/debug-msmcortex.config kernel/arch/arm/configs/ext_config/mot8937.config kernel/arch/arm/configs/ext_config/mot8937-montana.config && cat kernel/arch/arm/configs/msmcortex-perf_defconfig kernel/arch/arm/configs/ext_config/moto-msmcortex.config kernel/arch/arm/configs/ext_config/debug-msmcortex.config kernel/arch/arm/configs/ext_config/mot8937.config kernel/arch/arm/configs/ext_config/mot8937-montana.config ) > $kernel_out_dir/mapphone_defconfig || ( rm -f $kernel_out_dir/mapphone_defconfig && false )
cp $kernel_out_dir/mapphone_defconfig $kernel_out_dir/.config
make ARCH=arm CROSS_COMPILE=$cross O=$kernel_out_dir p161m_defconfig
make ARCH=arm CROSS_COMPILE=$cross O=$kernel_out_dir KCFLAGS=-mno-android headers_install
TARGET_PRODUCT=p161m make ARCH=arm CROSS_COMPILE=$cross O=$kernel_out_dir KCFLAGS=-mno-android -j8