-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathanykernelmaker
executable file
·49 lines (49 loc) · 1.75 KB
/
anykernelmaker
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
#!/bin/sh
if [[ "$2" == "$1" ]]
then
echo Fehler: Parameter 1 = Parameter 2
else
if [ $# -eq 3 ]
then
rm -R -f $2
cp -R /home/randolf/android/kernel/AnyKernel $2 -f
rm -R -f $2/.git
cp $1/arch/arm/boot/zImage $2/kernel/.
rm $2/system/lib/modules/* -f
find $1/. -name *.ko | xargs cp -a --target-directory=$2/system/lib/modules/
## cp $1/drivers/net/wireless/bcm4325/wireless.ko $2/system/lib/modules/.
## cp $1/arch/arm/mach-msm/qdsp5/vocpcm.ko $2/system/lib/modules/.
## cp $1/arch/arm/common/cpaccess.ko $2/system/lib/modules/.
## cp $1/drivers/mmc/card/mmc_test.ko $2/system/lib/modules/.
## cp $1/drivers/scsi/scsi_wait_scan.ko $2/system/lib/modules/.
## cp $1/drivers/mtd/tests/mtd*.ko $2/system/lib/modules/.
# cp $1/drivers/net/tun.ko $2/system/lib/modules/.
# cp $1/fs/cifs/cifs.ko $2/system/lib/modules/.
# cp $1/fs/fuse/fuse.ko $2/system/lib/modules/.
sh /home/randolf/android/kernel/sign_kernel $2
cp $2/$2-signed.zip $3/.
pushd $3
git add .
git commit -a -m "TEST"
git push
popd
else
if [ $# -eq 2 ]
then
rm -R -f $2
cp -R /home/randolf/android/kernel/AnyKernel $2 -f
rm -R -f $2/.git
cp $1/arch/arm/boot/zImage $2/kernel/.
rm $2/system/lib/modules/* -f
find $1/. -name *.ko | xargs cp -a --target-directory=$2/system/lib/modules/
## cp $1/drivers/net/wireless/bcm4325/wireless.ko $2/system/lib/modules/.
# cp $1/drivers/net/tun.ko $2/system/lib/modules/.
# cp $1/fs/cifs/cifs.ko $2/system/lib/modules/.
# cp $1/fs/fuse/fuse.ko $2/system/lib/modules/.
sh /home/randolf/android/kernel/sign_kernel $2
else
echo "Verzeichnisnamen des Kernels und für das neue Anykernels angeben (ohne '/' am Ende)"
echo "Beispiel: anykernelmaker /kernel /NewAnyKernel"
fi
fi
fi