-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_it4_all
executable file
·144 lines (109 loc) · 4.45 KB
/
build_it4_all
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
### GCC 4.9.x
### I'm using UBERTC https://bitbucket.org/UBERTC/aarch64-linux-android-4.9-kernel
export ARCH=arm64
export PATH=~/aarch64-linux-android-4.9-kernel/bin/:$PATH
### See prefix of file names in the toolchain's bin directory
export CROSS_COMPILE=aarch64-linux-android-
export KBUILD_DIFFCONFIG=sumire_diffconfig
make msm8994-perf_defconfig
make
echo "checking for compiled kernel..."
if [ -f arch/arm64/boot/Image.gz-dtb ]
then
echo "DONE"
### E6653
../final_files/mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-5 dwc3_msm.prop_chg_detect=Y coherent_pool=2M dwc3_msm.hvdcp_max_current=1500 enforcing=0" --base 0x00000000 --kernel arch/arm64/boot/Image.gz-dtb --ramdisk ../final_files/ramdisk_sumire.cpio.gz --ramdisk_offset 0x02000000 --pagesize 4096 -o ../final_files/boot_E6653.img --tags_offset 0x01E00000
fi
### Build for suzuran
export KBUILD_DIFFCONFIG=suzuran_diffconfig
make msm8994-perf_defconfig
make
echo "checking for compiled kernel..."
if [ -f arch/arm64/boot/Image.gz-dtb ]
then
echo "DONE"
### E5823
../final_files/mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-5 dwc3_msm.prop_chg_detect=Y coherent_pool=2M dwc3_msm.hvdcp_max_current=1500 enforcing=0" --base 0x00000000 --kernel arch/arm64/boot/Image.gz-dtb --ramdisk ../final_files/ramdisk_suzuran.cpio.gz --ramdisk_offset 0x02000000 --pagesize 4096 -o ../final_files/boot_E5823.img --tags_offset 0x01E00000
fi
### Build for karin
export KBUILD_DIFFCONFIG=karin_diffconfig
make msm8994-perf_defconfig
make
echo "checking for compiled kernel..."
if [ -f arch/arm64/boot/Image.gz-dtb ]
then
echo "DONE"
### SGP771
../final_files/mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-7 dwc3_msm.prop_chg_detect=Y coherent_pool=2M enforcing=0" --base 0x00000000 --kernel arch/arm64/boot/Image.gz-dtb --ramdisk ../final_files/ramdisk_karin.cpio.gz --ramdisk_offset 0x02000000 --pagesize 4096 -o ../final_files/boot_SGP771.img --tags_offset 0x01E00000
fi
### Build for karin windy
export KBUILD_DIFFCONFIG=karin_windy_diffconfig
make msm8994-perf_defconfig
make
echo "checking for compiled kernel..."
if [ -f arch/arm64/boot/Image.gz-dtb ]
then
echo "DONE"
### SGP712
../final_files/mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-7 dwc3_msm.prop_chg_detect=Y coherent_pool=2M enforcing=0" --base 0x00000000 --kernel arch/arm64/boot/Image.gz-dtb --ramdisk ../final_files/ramdisk_karin_windy.cpio.gz --ramdisk_offset 0x02000000 --pagesize 4096 -o ../final_files/boot_SGP712.img --tags_offset 0x01E00000
fi
echo "checking for output..."
if [ -f ../final_files/boot_E6653.img ]
then
### Version number
echo -n "Enter version number: "
read version
if [ -e ../final_files/boot_E6653.img ]
then
### Zip boot.img
cd ../final_files/
mv boot_E6653.img boot.img
zip Z5_AndroPlusKernel_Permissive_v.zip boot.img
cp Z5_AndroPlusKernel_Permissive_v.zip uploads/Z5_AndroPlusKernel_Permissive_v$version.zip
rm -f boot.img
cd ../kernel/
fi
if [ -e ../final_files/boot_E6653_E.img ]
then
### Zip boot.img
cd ../final_files/
mv boot_E6653_E.img boot.img
zip Z5_AndroPlusKernel_Enforcing_v.zip boot.img
cp Z5_AndroPlusKernel_Enforcing_v.zip uploads/Z5_AndroPlusKernel_Enforcing_v$version.zip
rm -f boot.img
cd ../kernel/
fi
if [ -e ../final_files/boot_E5823.img ]
then
### Zip boot.img
cd ../final_files/
mv boot_E5823.img boot.img
zip Z5C_AndroPlusKernel_v.zip boot.img
cp Z5C_AndroPlusKernel_v.zip uploads/Z5C_AndroPlusKernel_v$version.zip
rm -f boot.img
cd ../kernel/
fi
if [ -e ../final_files/boot_SGP771.img ]
then
### Zip boot.img
cd ../final_files/
mv boot_SGP771.img boot.img
zip Z4T_SGP771_AndroPlusKernel_v.zip boot.img
cp Z4T_SGP771_AndroPlusKernel_v.zip uploads/Z4T_SGP771_AndroPlusKernel_v$version.zip
rm -f boot.img
cd ../kernel/
fi
if [ -e ../final_files/boot_SGP712.img ]
then
### Zip boot.img
cd ../final_files/
mv boot_SGP712.img boot.img
zip Z4T_SGP712_AndroPlusKernel_v.zip boot.img
cp Z4T_SGP712_AndroPlusKernel_v.zip uploads/Z4T_SGP712_AndroPlusKernel_v$version.zip
rm -f boot.img
cd ../kernel/
fi
### Upload zips
sh ../final_files/ftp.sh
rm -fv `find ../final_files/uploads -type f`
fi