forked from glewarne/Note2Core_kernel_build_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.sh
More file actions
executable file
·67 lines (59 loc) · 2.33 KB
/
menu.sh
File metadata and controls
executable file
·67 lines (59 loc) · 2.33 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
#!/bin/sh
#create working directory variable - automatic - will detect whatever directory you extract the
#source package too
PLACE=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
MODE="NORMAL"
$PLACE/build_scripts/flip.sh EX $PLACE $MODE
VER=$(head -n 1 $PLACE/build_scripts/version.txt)
#menu options and what we do with them
while true; do
VER=$(head -n 1 $PLACE/build_scripts/version.txt)
clear
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~Note2Core kernel Autobuilder v6.2~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Build version v$VER"
echo "Operational mode for compile - $MODE"
echo
echo "Working directory = $PLACE"
echo
echo "OPTION FUNCTION"
echo
echo " D Create the standard t0_04_defconfig"
echo " N Create the Note2Core defconfig"
echo " L Create the Note2Core LTE defconfig"
echo " X Configure your kernel with xconfig"
echo
echo " S Compile STD kernel (1.6ghz fsync on) $MODE"
echo " O Compile OC kernel (1.8ghz fsync on) $MODE"
echo " E Compile EX kernel (1.8ghz fsync off) $MODE"
echo " B Bug-finding compile"
echo
echo " C Make Clean the source "
echo
echo
echo " F Flip compile mode between NORMAL and LTE"
echo " V Change kernel version number"
echo
echo " Q Quit"
echo
read -p "Choose > " choice
case $choice in
# now we determine what option was selected, and run the build.sh script, passing the relevant
# parameters to determine the functions it executes.
# Parameter 1=Function $PLACE=automatic working directory detection
[Dd]* ) $PLACE/build_scripts/build.sh DF $PLACE;;
[Nn]* ) $PLACE/build_scripts/build.sh HC $PLACE;;
[Ll]* ) $PLACE/build_scripts/build.sh LT $PLACE;;
[Xx]* ) $PLACE/build_scripts/build.sh XC $PLACE $MODE;;
[Ss]* ) $PLACE/build_scripts/build.sh STD $PLACE $MODE $VER;;
[Oo]* ) $PLACE/build_scripts/build.sh OC $PLACE $MODE $VER;;
[Ee]* ) $PLACE/build_scripts/build.sh EX $PLACE $MODE $VER;;
[Bb]* ) $PLACE/build_scripts/build.sh DBG $PLACE $MODE;;
[Cc]* ) $PLACE/build_scripts/build.sh MC $PLACE;;
[Ff]* ) if [ "$MODE" = "NORMAL" ]; then MODE="LTE" ;else MODE="NORMAL"; fi;;
[Vv]* ) $PLACE/build_scripts/ver.sh $PLACE $VER;;
[Qq]* ) exit;;
* ) echo "Please answer d,p,x,o,s,d,m or q.";;
esac
done