-
Notifications
You must be signed in to change notification settings - Fork 18
/
MMI-QOD30.163-3.txt
executable file
·42 lines (22 loc) · 4.94 KB
/
MMI-QOD30.163-3.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
#!/bin/bash
mydir=`pwd`
#rm -rf $mydir/kernel-4.9/out
mkdir -p $mydir/kernel-4.9/out/target/product/generic/obj/kernel
kernel_out_dir=$mydir/kernel-4.9/out/target/product/generic/obj/kernel
cross=$mydir/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
make -j8 -w -C kernel-4.9 KBUILD_RELSRC=$mydir/kernel-4.9 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android blackjack_64_defconfig &> 1.log
make -j8 -w -C kernel-4.9 KBUILD_RELSRC=$mydir/kernel-4.9 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android V=1 &> 2.log
make -j8 -w -C kernel-4.9 KBUILD_RELSRC=$mydir/kernel-4.9 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android dtbs &> 3.log
make -j8 -w -C kernel-4.9 KBUILD_RELSRC=$mydir/kernel-4.9 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android modules &> 4.log
make -j8 -w -C kernel-4.9 KBUILD_RELSRC=$mydir/kernel-4.9 O=$kernel_out_dir INSTALL_MOD_PATH=$mydir/kernel-4.9/out/target/product/generic INSTALL_MOD_STRIP="--strip-debug --remove-section=.note.gnu.build-id" ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= modules_install &> 5.log
make -j8 -w -C kernel-4.9 M=$mydir/vendor/mediatek/kernel_modules/connectivity/common KBUILD_RELSRC=$mydir/kernel-4.9 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android modules AUTOCONF_H=$kernel_out_dir/include/generated/autoconf.h
make -j8 -w -C kernel-4.9 M=$mydir/vendor/mediatek/kernel_modules/connectivity/common KBUILD_RELSRC=$mydir/kernel-4.9 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android INSTALL_MOD_PATH=$mydir/out/target/product/generic INSTALL_MOD_STRIP="--strip-debug --remove-section=.note.gnu.build-id" modules_install
cp $mydir/vendor/mediatek/kernel_modules/connectivity/common/Module.symvers $mydir/vendor/mediatek/kernel_modules/connectivity/bt/mt66xx/legacy/
cp $mydir/vendor/mediatek/kernel_modules/connectivity/common/Module.symvers $mydir/vendor/mediatek/kernel_modules/connectivity/wlan/adaptor/
make -j8 -w -C kernel-4.9 M=$mydir/vendor/mediatek/kernel_modules/connectivity/bt/mt66xx/legacy KBUILD_RELSRC=$mydir/kernel-4.9 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android modules AUTOCONF_H=$kernel_out_dir/include/generated/autoconf.h TOP=$PWD MTK_BT_SUPPORT=yes MTK_BT_CHIP=MTK_CONSYS_MT6765
make -j8 -w -C kernel-4.9 M=$mydir/vendor/mediatek/kernel_modules/connectivity/bt/mt66xx/legacy KBUILD_RELSRC=$mydir/kernel-4.9 O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android INSTALL_MOD_PATH=$mydir/out/target/product/generic INSTALL_MOD_STRIP="--strip-debug --remove-section=.note.gnu.build-id" modules_install
make -j8 -w -C kernel-4.9 M=$mydir/vendor/mediatek/kernel_modules/connectivity/wlan/adaptor KBUILD_RELSRC=$mydir/kernel O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android modules MODULE_NAME=wmt_chrdev_wifi TOP=$PWD AUTOCONF_H=$kernel_out_dir/obj/kernel/include/generated/autoconf.h
make -j8 -w -C kernel-4.9 M=$mydir/vendor/mediatek/kernel_modules/connectivity/wlan/adaptor KBUILD_RELSRC=$mydir/kernel O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android INSTALL_MOD_PATH=$mydir/out/target/product/generic INSTALL_MOD_STRIP="--strip-debug --remove-section=.note.gnu.build-id" modules_install
cp $mydir/vendor/mediatek/kernel_modules/connectivity/wlan/adaptor/Module.symvers $mydir/vendor/mediatek/kernel_modules/connectivity/wlan/core/gen4m
make -j8 -w -C kernel-4.9 M=$mydir/vendor/mediatek/kernel_modules/connectivity/wlan/core/gen4m O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android modules CONFIG_MTK_COMBO_WIFI_HIF=axi CONFIG_MTK_COMBO=y CONFIG_MTK_COMBO_CHIP_CONSYS_6765=y CONFIG_MTK_COMBO_CHIP=6765 MTK_COMBO_CHIP=CONNAC MTK_ANDROID_WMT=y WLAN_CHIP_ID=6765 CONFIG_MTK_BTIF=y CONFIG_MTK_AEE_FEATURE=y CONFIG_MTK_GPT_SCHEME_SUPPORT=y CONFIG_MACH_MT6765=y KERNEL_OUT=$kernel_out_dir MTK_PLATFORM=mt6765 ARCH_MTK_PROJECT="fiji_64" TOP=$PWD srctree=$mydir/kernel-4.9 AUTOCONF_H=$kernel_out_dir/include/generated/autoconf.h MODULE_NAME=wlan_drv_gen4m CONFIG_COMPAT=y
make -j8 -w -C kernel-4.9 M=$mydir/vendor/mediatek/kernel_modules/connectivity/wlan/core/gen4m KBUILD_RELSRC=$mydir/kernel O=$kernel_out_dir ARCH=arm64 CROSS_COMPILE=$cross KBUILD_BUILD_USER= KBUILD_BUILD_HOST= KCFLAGS=-mno-android INSTALL_MOD_PATH=$mydir/out/target/product/generic INSTALL_MOD_STRIP="--strip-debug --remove-section=.note.gnu.build-id" modules_install