This repository was archived by the owner on Jan 7, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbuild_tone_release
More file actions
executable file
·98 lines (76 loc) · 2.41 KB
/
build_tone_release
File metadata and controls
executable file
·98 lines (76 loc) · 2.41 KB
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
### 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-
if [ -e out/arch/arm64/boot ]; then
rm -rf out/arch/arm64/boot
fi
export KBUILD_DIFFCONFIG=dora_diffconfig
make msm-perf_defconfig O=./out
make O=./out
echo "checking for compiled kernel..."
if [ -f out/arch/arm64/boot/Image.gz-dtb ]
then
echo "DONE"
### F8132
../final_files/mkbootimg \
--kernel out/arch/arm64/boot/Image.gz-dtb \
--ramdisk ../final_files/ramdisk_dora_dsds.cpio.gz \
--cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=16M@0-0xffffffff coherent_pool=2M enforcing=0" \
--base 0x80000000 \
--pagesize 4096 \
--ramdisk_offset 0x02200000 \
--tags_offset 0x02000000 \
--output ../final_files/boot_F8132.img
### Version number
echo -n "Enter version number: "
read version
if [ -e ../final_files/boot_F8132.img ]
then
### Zip boot.img
cd ../final_files/
mv boot_F8132.img boot.img
zip XP_AndroPlusKernel_Permissive_v.zip boot.img
rm -f boot.img
### Copy zip
cp XP_AndroPlusKernel_Permissive_v.zip uploads/XP_AndroPlusKernel_v$version.zip
cd ../kernel/
fi
fi
if [ -e out/arch/arm64/boot ]; then
rm -rf out/arch/arm64/boot
fi
export KBUILD_DIFFCONFIG=kagura_diffconfig
make msm-perf_defconfig O=./out
make O=./out
echo "checking for compiled kernel..."
if [ -f out/arch/arm64/boot/Image.gz-dtb ]
then
echo "DONE"
### F8332
../final_files/mkbootimg \
--kernel out/arch/arm64/boot/Image.gz-dtb \
--ramdisk ../final_files/ramdisk_kagura_dsds.cpio.gz \
--cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=16M@0-0xffffffff coherent_pool=2M enforcing=0" \
--base 0x80000000 \
--pagesize 4096 \
--ramdisk_offset 0x02200000 \
--tags_offset 0x02000000 \
--output ../final_files/boot_F8332.img
if [ -e ../final_files/boot_F8332.img ]
then
### Zip boot.img
cd ../final_files/
mv boot_F8332.img boot.img
zip XZ_AndroPlusKernel_Permissive_v.zip boot.img
rm -f boot.img
### Copy zip
cp XZ_AndroPlusKernel_Permissive_v.zip uploads/XZ_AndroPlusKernel_v$version.zip
cd ../kernel/
fi
### Upload zips
sh ../final_files/ftp.sh
rm -fv `find ../final_files/uploads -type f`
fi