-
Notifications
You must be signed in to change notification settings - Fork 18
/
MMI-NCQ26.69-48.txt
68 lines (37 loc) · 2.46 KB
/
MMI-NCQ26.69-48.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
MMI-NCQ26.69-48 For Moto E4
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 $PWD/prebuilts/gcc/linux-x86/arm
mv arm-eabi-4.8 $PWD/prebuilts/gcc/linux-x86/arm/.
download kernel
download motorola-kernel
mkdir motorola/
mv motorola-kernel/ motorola/kernel/
mkdir -p $PWD/out/target/product/generic/obj/kernel
kernel_out_dir=$PWD/out/target/product/generic/obj/kernel
cross=$PWD/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
cat kernel/arch/arm/configs/msmcortex-perf_defconfig kernel/arch/arm/configs/ext_config/moto-msmcortex.config kernel/arch/arm/configs/ext_config/mot8937.config kernel/arch/arm/configs/ext_config/mot8937-perry.config > $kernel_out_dir/mapphone_defconfig
cp $kernel_out_dir/mapphone_defconfig $kernel_out_dir/.config
make -C kernel O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= defoldconfig
make -C kernel O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross oldconfig
make -C kernel O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= defoldconfig
make -C kernel O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= headers_install
make -C kernel O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= defoldconfig
make -C kernel O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross oldconfig
make -C kernel KBUILD_RELSRC=$PWD/kernel O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST=
make -C kernel KBUILD_RELSRC=$PWD/kernel O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= dtbs
make -C kernel KBUILD_RELSRC=$PWD/kernel O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= modules
dtvdriver:
---------------
download dtvdriver
mkdir -p $PWD/vendor/fci
mv dtvdriver/ $PWD/vendor/fci/.
make -C kernel M=$PWD/vendor/fci/dtvdriver/sdk/src O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross modules
WLAN driver:
---------------
download wlan-prima
mkdir -p $PWD/vendor/qcom/opensource/wlan
mv wlan-prima $PWD/vendor/qcom/opensource/wlan/prima
make -C kernel M=$PWD/vendor/qcom/opensource/wlan/prima O=$kernel_out_dir ARCH=arm CROSS_COMPILE=$cross modules WLAN_ROOT=$PWD/vendor/qcom/opensource/wlan/prima MODNAME=wlan BOARD_PLATFORM=msm8937 CONFIG_PRONTO_WLAN=m