forked from HUAWEI-y550/android_kernel_huawei_msm8916
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gcc7.sh
executable file
·48 lines (40 loc) · 1.41 KB
/
gcc7.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
45
46
47
48
#!/bin/bash
echo Do you want to clean?
read REPLY1
if [[ $REPLY1 =~ ^[Yy]$ ]]
then
make clean && make mrproper
git reset --hard
echo Do you want to compile kernel?
read REPLY2
if [[ $REPLY2 =~ ^[Yy]$ ]]
then
export ARCH=arm
export CROSS_COMPILE=~/Android/Kernel/toolchains/UBERTC-arm-eabi-7.0/bin/arm-eabi-
make g620s_defconfig
echo "Enter number of threads: "
read input_variable
echo "You entered: $input_variable"
make -j$input_variable
cp arch/arm/boot/zImage '/home/quagmire/Desktop/2/uber'
find . -name '*ko' -exec cp '{}' '/home/quagmire/Desktop/2/uber' \;
fi
elif [[ $REPLY1 =~ ^[Nn]$ ]]
then
echo Do you want to compile kernel now?
read REPLY3
if [[ $REPLY3 =~ ^[Yy]$ ]]
then
export ARCH=arm
export CROSS_COMPILE=~/Android/Kernel/toolchains/UBERTC-arm-eabi-7.0/bin/arm-eabi-
make g620s_defconfig
echo "Enter number of threads: "
read input_variable
echo "You entered: $input_variable"
make -j$input_variable
cp arch/arm/boot/zImage '/home/quagmire/Desktop/2/uber'
find . -name '*ko' -exec cp '{}' '/home/quagmire/Desktop/2/uber' \;
fi
fi
read -rsp $'Press any key to continue...\n' -n 1 key
# echo $key