-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathconfig.sh
executable file
·44 lines (37 loc) · 914 Bytes
/
config.sh
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
#!/sbin/sh
## start config variables
# if this is changed, it also needs to be set in boot-patcher.sh, update-binary, and patch.d-env
tmp=/tmp/kernel-flasher
# leave device_names empty to allow flashing on any device
device_names=
# leave boot_block empty for automatic (searches recovery.fstab and other locations)
boot_block=
# leave ramdisk_compression empty to keep the current ramdisk compression format
# only gzip, lz4, lzo, and bzip2 are supported
ramdisk_compression=
# if you enable this, you will need to add /data mounting to the update-binary script
# boot_backup=/data/local/boot-backup.img
bin=$tmp/tools
ramdisk=$tmp/ramdisk
ramdisk_patch=$ramdisk-patch
split_img=$tmp/split-img
modules=$tmp/modules
## end config variables
case $(getprop ro.product.cpu.abi) in
x86)
arch=x86
;;
x86_64)
arch=x86_64
;;
arm64*)
arch=arm64
;;
armeabi*)
arch=arm
;;
*)
arch=arm
;;
esac
bin=$bin/$arch