-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_it4_sumire
executable file
·56 lines (41 loc) · 2.12 KB
/
build_it4_sumire
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
### 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
### Enforcing build
#../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=1" --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_E.img --tags_offset 0x01E00000
### 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
rm -f boot.img
### Copy zip to my desktop
dd if=Z5_AndroPlusKernel_Permissive_v.zip of="/mnt/hgfs/VMShare/デスクトップ/Z5_AndroPlusKernel_Permissive_v$version.zip"
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
rm -f boot.img
### Copy zip to my desktop
dd if=Z5_AndroPlusKernel_Enforcing_v.zip of="/mnt/hgfs/VMShare/デスクトップ/Z5_AndroPlusKernel_Enforcing_v$version.zip"
fi
fi