-
Notifications
You must be signed in to change notification settings - Fork 18
/
MMI-PPYS29.105-134-7.txt
171 lines (89 loc) · 12.3 KB
/
MMI-PPYS29.105-134-7.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
PPYS29.105-134-7 For Moto G Play 7th Gen
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-eabi-4.8
mkdir -p $my_top_dir/prebuilts/gcc/linux-x86/arm
mv arm-eabi-4.8 $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
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/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
bcross=$my_top_dir/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
ccross=$my_top_dir/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-
mkdir -p $my_top_dir/out/host/linux-x86/bin
# Download dtc binary from https://github.com/MotorolaMobilityLLC/readme/tree/master/dtc_PPYS29.105-134-7 and include to bin directory created above
dtc=$my_top_dir/out/host/linux-x86/bin/dtc
( perl -le 'print \"# This file was automatically generated from:\n#\t\" . join(\"\n#\t\", @ARGV) . \"\n\"' 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/debug-msm8953.config kernel/msm-4.9/arch/arm/configs/ext_config/debug-msm8953_32.config kernel/msm-4.9/arch/arm/configs/ext_config/debug-sdm632-channel.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-channel.config && 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/debug-msm8953.config kernel/msm-4.9/arch/arm/configs/ext_config/debug-msm8953_32.config kernel/msm-4.9/arch/arm/configs/ext_config/debug-sdm632-channel.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-channel.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 -j24 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=$dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y ARCH=arm CROSS_COMPILE=$ccross defoldconfig
make -j24 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=$dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y ARCH=arm CROSS_COMPILE=$ccross oldconfig
make -j24 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=$dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y ARCH=arm CROSS_COMPILE=$ccross headers_install
make -j24 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=$dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android
make -j24 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=$dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 O=$kernel_out_dir INSTALL_MOD_PATH=$my_top_dir/out/target/product/generic INSTALL_MOD_STRIP=1 DTC_EXT=$dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y ARCH=arm CROSS_COMPILE=$ccross modules_install
make -C kernel/msm-4.9 O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$bcross clean
make -C kernel/msm-4.9 O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$bcross mrproper
make -C kernel/msm-4.9 O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$bcross distclean
make -j24 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=$dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y ARCH=arm CROSS_COMPILE=$ccross tags
env KCONFIG_NOTIMESTAMP=true make -j24 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=$dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y ARCH=arm CROSS_COMPILE=$ccross menuconfig
env KCONFIG_NOTIMESTAMP=true make -j24 -C kernel/msm-4.9 O=$kernel_out_dir DTC_EXT=$dtc CONFIG_BUILD_ARM64_DT_OVERLAY=y ARCH=arm CROSS_COMPILE=$ccross savedefconfig
WLAN Driver:
------------
cd $PWD/out/target/product/generic/obj
make -j24 -C kernel/msm-4.9 M=$my_top_dir/vendor/qcom/opensource/wlan/prima O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules WLAN_ROOT=$my_top_dir/vendor/qcom/opensource/wlan/prima MODNAME=wlan BOARD_PLATFORM=msm8953 CONFIG_PRONTO_WLAN=m ENABLE_DRIVER_VERBOSE=1
Motorola Kernel Modules:
------------------------
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/fs/exfat O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/tzlog_dump O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/utag O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/watchdogtest O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/sensors O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/sx9310 O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/sx9325 O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/abov O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/mmi_info O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/mmi_annotate O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/tps61280 O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/touchscreen/nova_36525_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/touchscreen/ilitek_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/touchscreen/himax_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/sound/soc/codecs O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/mmi_sys_temp O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/drv2624_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/awinic/aw8624 O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/misc/fpc_fps_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/extcon O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/gpio O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/gud/MobiCoreDriver O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/misc/ets_fps_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/misc/ldc2114_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/misc/qpnp_power_on_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/misc/vl53L0 O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/misc/vl53L1 O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/touchscreen/focaltech_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/touchscreen/nova_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/touchscreen/raydium_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/touchscreen/synaptics_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/input/touchscreen/synaptics_tcm_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/irqchip O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/media/platform/msm/camera/cam_sensor_module/cam_cci O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/mfd O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/awinic/aw869x O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/cypress O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/misc/sx933x O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/mmi_muc_uart O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/moto_f_diag O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/moto_f_usbnet O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/nfc/st21nfc O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/power/bq2597x_mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/power/max170xx O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/power/mmi_pl_chg_manager O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/power/qpnp-smbcharger-mmi O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/regulator O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules
make -j24 -C kernel/msm-4.9 M=../../motorola/kernel/modules/drivers/watchdog_cpu_ctx O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$ccross KCFLAGS=-mno-android modules