This repository has been archived by the owner on Mar 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
copy_strip.sh
executable file
·74 lines (41 loc) · 3.05 KB
/
copy_strip.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
63
64
65
66
67
68
69
70
71
72
#Copy Modules to Modules directory and strip
echo "Copying modules to Modules directory"
cp /home/aditya/i9003/i9003_Kernel/crypto/pcbc.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/drivers/misc/ti-st/st_drv.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/drivers/scsi/scsi_wait_scan.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/drivers/bluetooth/btwilink.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/samsung/battery/samsung_battery.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/samsung/fm_si4709/Si4709_driver.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/samsung/vibetonz/vibetonz.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/samsung/param/param.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/samsung/yas529/yas_mag_kernel_driver.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/samsung/bma222/yas_acc_kernel_driver.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/samsung/gp2a/gp2a.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/samsung/orientation/yas_ori_kernel_driver.ko /home/aditya/i9003/Modules/
cp /home/aditya/i9003/i9003_Kernel/samsung/gps/gps.ko /home/aditya/i9003/Modules/
echo "Modules copied, Stripping Em :D"
cd /home/aditya/i9003/Modules/
for i in $(find . | grep .ko | grep './')
do
echo $i
/home/aditya/Toolchain/arm-2009q3/bin/arm-none-eabi-strip --strip-unneeded $i
done
echo "Modules Stripped!"
#Copy modules to Ramdisk.
echo "Copying Modules to ramdisk.."
cd /home/aditya/i9003/Modules/
cp pcbc.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/crypto/pcbc.ko
cp st_drv.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/drivers/misc/ti-st/st_drv.ko
cp scsi_wait_scan.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/drivers/scsi/scsi_wait_scan.ko
cp btwilink.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/drivers/bluetooth/btwilink.ko
cp samsung_battery.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/samsung/battery/samsung_battery.ko
cp Si4709_driver.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/Si4709_driver.ko
cp vibetonz.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/samsung/vibetonz/vibetonz.ko
cp param.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/samsung/param/param.ko
cp yas_mag_kernel_driver.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/samsung/yas529/yas_mag_kernel_driver.ko
cp yas_acc_kernel_driver.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/samsung/bma222/yas_acc_kernel_driver.ko
cp gp2a.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/samsung/gp2a/gp2a.ko
cp yas_ori_kernel_driver.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/samsung/orientation/yas_ori_kernel_driver.ko
cp gps.ko /home/aditya/i9003/urt/ramdisk/lib/modules/2.6.35.7/kernel/samsung/gps/gps.ko
echo "Modules Copied to ramdisk"
echo "Ramdisk is ready!"