forked from coolya/android_kernel_samsung
-
Notifications
You must be signed in to change notification settings - Fork 7
/
443cdma.sh
executable file
·63 lines (38 loc) · 1.74 KB
/
443cdma.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# To use with Fascinate (non-Telus) or other potentially supported CDMA device
make mrproper
if test -s Makefile_backup -a -s arch/arm/Makefile_backup -a -d drivers/misc/samsung_modemctl_backup; then
mv Makefile Makefile_opti
mv Makefile_backup Makefile
mv arch/arm/Makefile arch/arm/Makefile_opti
mv arch/arm/Makefile_backup arch/arm/Makefile
mv drivers/misc/samsung_modemctl drivers/misc/samsung_modemctl_opti
mv drivers/misc/samsung_modemctl_backup drivers/misc/samsung_modemctl
echo "Switching done. Building..."
. release/auto/CDMA.sh
echo "Building done. Reswitching..." && {
mv Makefile Makefile_backup
mv Makefile_opti Makefile
mv arch/arm/Makefile arch/arm/Makefile_backup
mv arch/arm/Makefile_opti arch/arm/Makefile
mv drivers/misc/samsung_modemctl/built-in.o drivers/misc/samsung_modemctl_opti/built-in.443cdma_samsung_modemctl
#mv drivers/misc/samsung_modemctl/modemctl/built-in.o drivers/misc/samsung_modemctl_opti/modemctl/built-in.443cdma_modemctl
mv drivers/misc/samsung_modemctl drivers/misc/samsung_modemctl_backup
mv drivers/misc/samsung_modemctl_opti drivers/misc/samsung_modemctl
}
echo "Done! now preparing for next build..." && {
./prepcdma.sh
}
else
echo "There's a backup missing, if needed, reverting changes to prepare rebuild "
fi
if test -s Makefile_opti -a -s arch/arm/Makefile_opti -a -d drivers/misc/samsung_modemctl_opti; then
mv Makefile Makefile_backup
mv Makefile_opti Makefile
mv arch/arm/Makefile arch/arm/Makefile_backup
mv arch/arm/Makefile_opti arch/arm/Makefile
mv drivers/misc/samsung_modemctl drivers/misc/samsung_modemctl_backup
mv drivers/misc/samsung_modemctl_opti drivers/misc/samsung_modemctl
echo "Let's restart the process"
./443cdma.sh
fi