-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathproject.sh
More file actions
executable file
·31 lines (30 loc) · 850 Bytes
/
project.sh
File metadata and controls
executable file
·31 lines (30 loc) · 850 Bytes
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
#!/bin/sh
cmd="${1}"
case ${cmd} in
makeall)
sh -c 'cd driver/binder && make'
sh -c 'cd driver/ashmem && make'
sh -c 'cd servicemanager && make'
sh -c 'cd libs && make'
sh -c 'cd test && make'
;;
clean)
sh -c 'cd driver/binder && make clean'
sh -c 'cd driver/ashmem && make clean'
sh -c 'cd servicemanager && make clean'
sh -c 'cd libs && make clean'
sh -c 'cd test && make clean'
;;
insmod)
sh -c 'sudo insmod driver/binder/binder_linux.ko'
sh -c 'sudo insmod driver/ashmem/ashmem_linux.ko'
;;
rmmod)
sh -c 'sudo rmmod binder_linux'
sh -c 'sudo rmmod ashmem_linux'
;;
*)
echo "`basename ${0}`:usage: [makeall] | [clean] | [insmod] | [rmmod]"
exit 1
;;
esac