-
Notifications
You must be signed in to change notification settings - Fork 18
/
MMI-LPH23.116-18.1.txt
33 lines (26 loc) · 2.42 KB
/
MMI-LPH23.116-18.1.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
MMI-LPH23.116-18.1 for Moto X (Gen3)
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/aarch64/aarch64-linux-android-4.9
mkdir -p $my_top_dir/prebuilts/gcc/linux-x86/aarch64
mv aarch64-linux-android-4.9 $my_top_dir/prebuilts/gcc/linux-x86/aarch64/.
Rename kernel-msm folder to $my_top_dir/kernel
Download motorola-kernel repo.
mkdir $my_top_dir/motorola
mv motorola-kernel $my_top_dir/motorola/kernel
Check if $my_top_dir/kernel/fs/f2fs points to the $my_top_dir/ motorola/kernel/fs/f2fs/ folder
mkdir -p $PWD/out/target/product/generic/obj/kernel
cross=$my_top_dir/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
kernel_out_dir=$PWD/out/target/product/generic/obj/kernel
( perl -le 'print "# This file was automatically generated from:\n#\t" . join("\n#\t", @ARGV) . "\n"' kernel/arch/arm64/configs/msm8994-perf_defconfig kernel/arch/arm64/configs/ext_config/debug-msm8994.config kernel/arch/arm64/configs/ext_config/debug-clark.config && cat kernel/arch/arm64/configs/msm8994-perf_defconfig kernel/arch/arm64/configs/ext_config/debug-msm8994.config kernel/arch/arm64/configs/ext_config/debug-clark.config ) > $kernel_out_dir/mapphone_defconfig
cp $kernel_out_dir/mapphone_defconfig $kernel_out_dir/.config
make -j32 -C kernel ARCH=arm64 CROSS_COMPILE=$cross O=$kernel_out_dir KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android defoldconfig
make -j32 -C kernel ARCH=arm64 CROSS_COMPILE=$cross O=$kernel_out_dir KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android
make -j32 -C kernel ARCH=arm64 CROSS_COMPILE=$cross O=$kernel_out_dir KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android dtbs
make -j32 -C kernel ARCH=arm64 CROSS_COMPILE=$cross O=$kernel_out_dir KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android modules
make -j32 -C kernel ARCH=arm64 CROSS_COMPILE=$cross O=$kernel_out_dir INSTALL_MOD_PATH=$PWD/out/target/product/generic KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android modules_install
WLAN Driver:
------------
cd $PWD/out/target/product/generic/obj
make -C kernel M=$my_top_dir/vendor/qcom/opensource/wlan/qcacld-2.0 O=$kernelout ARCH=arm64 CROSS_COMPILE=$cross KCFLAGS=-mno-android modules WLAN_ROOT=$my_top_dir/vendor/qcom/opensource/wlan/qcacld-2.0 MODNAME=wlan BOARD_PLATFORM=msm8992 CONFIG_QCA_CLD_WLAN=m WLAN_OPEN_SOURCE=1