-
Notifications
You must be signed in to change notification settings - Fork 7
/
build_suzuran
executable file
·49 lines (39 loc) · 1.82 KB
/
build_suzuran
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
export KBUILD_BUILD_USER=GreyLeshy
export KBUILD_BUILD_HOST=BuildHost
export USE_CCACHE=1
export CACHE_DIR=~/.ccache
export ARCH=arm64
### GCC 4.9 / Google Toolchain
#export PATH=~/android/prebuilts/aarch64-linux-android-4.9/bin/:$PATH
#export CROSS_COMPILE=aarch64-linux-android-
### GCC 6.4.1 / Linaro Toolchain
export PATH=~/android/prebuilts/gcc-linaro-6.4.1-2017.08-x86_64_aarch64-linux-gnu/bin/:$PATH
export CROSS_COMPILE=aarch64-linux-gnu-
export KBUILD_DIFFCONFIG=suzuran_diffconfig
make msm8994-perf_defconfig O=./out
make O=./out
echo "checking for compiled kernel..."
if [ -f out/arch/arm64/boot/Image.gz-dtb ]
then
echo "Done"
### Permissive build
../final_files/mkbootimg \
--kernel out/arch/arm64/boot/Image.gz-dtb \
--ramdisk ../final_files/ramdisk_suzuran_Nougat_32.4.A.0.160.cpio.gz \
--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 zram.backend=z3fold coherent_pool=2M dwc3_msm.hvdcp_max_current=1500 buildvariant=user androidboot.selinux=permissive enforcing=0" \
--base 0x00000000 \
--pagesize 4096 \
--ramdisk_offset 0x02000000 \
--tags_offset 0x01E00000 \
--output ../final_files/boot_E5823.img
### Enforcing build
../final_files/mkbootimg \
--kernel out/arch/arm64/boot/Image.gz-dtb \
--ramdisk ../final_files/ramdisk_suzuran_Nougat_32.4.A.0.160.cpio.gz \
--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 zram.backend=z3fold coherent_pool=2M dwc3_msm.hvdcp_max_current=1500 buildvariant=user androidboot.selinux=enforcing enforcing=1" \
--base 0x00000000 \
--pagesize 4096 \
--ramdisk_offset 0x02000000 \
--tags_offset 0x01E00000 \
--output ../final_files/boot_E5823_Enf.img
fi