-
Notifications
You must be signed in to change notification settings - Fork 18
/
MMI-QPG30.82-95.txt
83 lines (44 loc) · 6.85 KB
/
MMI-QPG30.82-95.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
MMI-QPG30.82-95 For Moto E(7)
Kernel Modules:
---------------
Download prebuilts folder from Android distribution. Move it to $my_top_dir
For example:
mkdir -vp $my_top_dir/prebuilts
cd $my_top_dir/prebuilts
git clone https://android.googlesource.com/platform/prebuilts/build-tools
mkdir -vp $my_top_dir/prebuilts/gcc/linux-x86/host
cd $my_top_dir/prebuilts/gcc/linux-x86/host
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8
mkdir -vp $my_top_dir/prebuilts/gcc/linux-x86/arm
cd $my_top_dir/prebuilts/gcc/linux-x86/arm
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
mkdir -vp $my_top_dir/prebuilts/gcc/linux-x86/arm
cd $my_top_dir/prebuilts/gcc/linux-x86/arm
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-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/msm-4.9
kernel_out_dir=$my_top_dir/out/target/product/generic/obj/kernel/msm-4.9
kernel_obj_out_dir=$my_top_dir/out/target/product/generic/obj/KERNEL_OBJ
kernel_out_path_generic=$my_top_dir/out/target/product/generic
make=$my_top_dir/prebuilts/build-tools/linux-x86/bin/make
x86_64_linux_ar=$my_top_dir/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-ar
x86_64_linux_gcc=$my_top_dir/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc
x86_64_linux_ld=$my_top_dir/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-ld
arm_eabi_=$my_top_dir/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
arm_linux_androidkernel_=$my_top_dir/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-
cat kernel/msm-4.9/arch/arm/configs/msm8953-perf_defconfig kernel/msm-4.9/arch/arm/configs/ext_config/moto-msm8953.config kernel/msm-4.9/arch/arm/configs/ext_config/moto-msm8953_32.config kernel/msm-4.9/arch/arm/configs/ext_config/moto-sdm632-ginna.config >> $kernel_out_dir/.config
$make -j48 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y HOSTCC=$x86_64_linux_gcc HOSTAR=$x86_64_linux_ar HOSTLD=$x86_64_linux_ld HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ defoldconfig
$make -j48 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y HOSTCC=$x86_64_linux_gcc HOSTAR=$x86_64_linux_ar HOSTLD=$x86_64_linux_ld HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ headers_install
$make -j48 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y HOSTCC=$x86_64_linux_gcc HOSTAR=$x86_64_linux_ar HOSTLD=$x86_64_linux_ld HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ oldconfig
env KCONFIG_NOTIMESTAMP=true $make -j48 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y HOSTCC=$x86_64_linux_gcc HOSTAR=$x86_64_linux_ar HOSTLD=$x86_64_linux_ld HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ savedefconfig
$make -j48 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y HOSTCC=$x86_64_linux_gcc HOSTAR=$x86_64_linux_ar HOSTLD=$x86_64_linux_ld HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ KCFLAGS=-mno-android CONFIG_INPUT_MISC_FPC1020_SAVE_TO_CLASS_DEVICE=y CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME=ft8006s_aa CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME=ft8006s_aa CONFIG_INPUT_HIMAX_V2_MMI_IC_NAME=hx83102 CONFIG_INPUT_HIMAX_V2_MMI_IC_NAME=hx83112
$make -j48 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y HOSTCC=$x86_64_linux_gcc HOSTAR=$x86_64_linux_ar HOSTLD=$x86_64_linux_ld HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ KCFLAGS=-mno-android CONFIG_INPUT_MISC_FPC1020_SAVE_TO_CLASS_DEVICE=y CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME=ft8006s_aa CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME=ft8006s_aa CONFIG_INPUT_HIMAX_V2_MMI_IC_NAME=hx83102 CONFIG_INPUT_HIMAX_V2_MMI_IC_NAME=hx83112 modules
$make -j48 -C kernel/msm-4.9 O=$kernel_out_dir INSTALL_MOD_PATH=$my_top_dir/$kernel_out_path_generic INSTALL_MOD_STRIP=1 DTC_EXT=dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y HOSTCC=$x86_64_linux_gcc HOSTAR=$x86_64_linux_ar HOSTLD=$x86_64_linux_ld HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ modules_install
$make -j48 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y HOSTCC=$x86_64_linux_gcc HOSTAR=$x86_64_linux_ar HOSTLD=$x86_64_linux_ld HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ tags
env KCONFIG_NOTIMESTAMP=true $make -j48 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y HOSTCC=$x86_64_linux_gcc HOSTAR=$x86_64_linux_ar HOSTLD=$x86_64_linux_ld HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib -L/usr/lib/x86_64-linux-gnu" HOSTLDFLAGS="-L/usr/lib -L/usr/lib/x86_64-linux-gnu" ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ menuconfig
make -C kernel/msm-4.9 O=$kernel_obj_out_dir ARCH=arm CROSS_COMPILE=$arm_eabi_ clean
make -C kernel/msm-4.9 O=$kernel_obj_out_dir ARCH=arm CROSS_COMPILE=$arm_eabi_ mrproper
make -C kernel/msm-4.9 O=$kernel_obj_out_dir ARCH=arm CROSS_COMPILE=$arm_eabi_ distclean
WLAN Driver:
------------
$make -j48 -C kernel/msm-4.9 M=$my_top_dir/vendor/qcom/opensource/wlan/prima O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$arm_linux_androidkernel_ KCFLAGS=-mno-android CONFIG_INPUT_MISC_FPC1020_SAVE_TO_CLASS_DEVICE=y CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME=ft8006s_aa CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME=ft8006s_aa CONFIG_INPUT_HIMAX_V2_MMI_IC_NAME=hx83102 CONFIG_INPUT_HIMAX_V2_MMI_IC_NAME=hx83112 modules WLAN_PROPRIETARY=0 TARGET_SUPPORTS_WEARABLES= KERNEL_TO_BUILD_ROOT_OFFSET=../../ MODNAME=wlan BOARD_PLATFORM=msm8953 CONFIG_PRONTO_WLAN=m ANDROID_BUILD_TOP=$PWD