-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcm11
More file actions
executable file
·93 lines (76 loc) · 2.38 KB
/
cm11
File metadata and controls
executable file
·93 lines (76 loc) · 2.38 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
#!/bin/bash
#
#****************************************************************
## Start timer:
START=$(date +%s)
#****************************************************************
## Set version info:
rn=Mackay_ROM
rv=4.2.6
kn=Mackay_kernel
kv=0.613_twrp
cm=cm11
#****************************************************************
## Check for missing parameters:
if [ "$1" != "s" ] && [ "$1" != "p4w" ] && [ "$1" != "hh" ]
then
echo "No target device defined"
exit 0
fi
if [ "$2" != "r" ] && [ "$2" != "k" ] && [ "$2" != "kv" ] && [ "$2" != "2k" ]
then
echo "No build specification defined"
exit 0
fi
#****************************************************************
## Set target:
if [ "$1" = "s" ]
then
trgt=galaxysmtd
fi
if [ "$1" = "p4w" ]
then
trgt=p4wifi
fi
if [ "$1" = "hh" ]
then
trgt=hammerhead
fi
#****************************************************************
## Set basic folder parameters:
echo "Setting folders"
finalout=~/android/cm11/out/target/product/$trgt
androidtop=~/android/cm11
secsign=~/android/cm11/build/target/product/security
#****************************************************************
## Start the build:
if [ "$trgt" = "galaxysmtd" ] && [ "$2" = "r" ]
then
echo "A CM11-based Mackay ROM will be build for $trgt"
build_rom "${trgt}" "${finalout}" "${androidtop}" "${secsign}" "${rn}" "${rv}" "${kn}" "${kv}"
fi
if [ "$trgt" = "galaxysmtd" ] && [ "$2" = "k" ]
then
echo "A single CM11-based kernel will be build for $trgt"
build_kernel_s "${trgt}" "${finalout}" "${androidtop}" "${secsign}" "${kn}" "${kv}" "${cm}"
fi
if [ "$trgt" = "galaxysmtd" ] && [ "$2" = "kv" ]
then
echo "A single voodoo CM11-based kernel will be build for $trgt"
build_kernel_sv "${trgt}" "${finalout}" "${androidtop}" "${secsign}" "${kn}" "${kv}" "${cm}"
fi
if [ "$trgt" = "galaxysmtd" ] && [ "$2" = "2k" ]
then
echo "Both CM11-based kernel flavours will be build for $trgt"
build_kernel_s_2 "${trgt}" "${finalout}" "${androidtop}" "${secsign}" "${kn}" "${kv}" "${cm}"
fi
if [ "$trgt" = "p4wifi" ] && [ "$2" = "r" ]
then
echo "A CM11-based Mackay ROM will be build for $trgt"
build_rom "${trgt}" "${finalout}" "${androidtop}" "${secsign}" "${rn}" "${rv}" "${kn}" "${kv}"
fi
if [ "$trgt" = "hammerhead" ] && [ "$2" = "r" ]
then
echo "A CM11-based Mackay ROM will be build for $trgt"
build_rom "${trgt}" "${finalout}" "${androidtop}" "${secsign}" "${rn}" "${rv}" "${kn}" "${kv}"
fi