forked from randyrossi/bmc64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean_all.sh
75 lines (55 loc) · 939 Bytes
/
clean_all.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
73
74
75
#!/bin/bash
if [ -f sdcard/config.txt ]
then
echo Cleaning...
else
echo Must be run from BMC64 root dir.
exit
fi
SRC_DIR=`pwd`
cd $SRC_DIR/third_party/vice-3.3
make clean
git status | grep 'deleted:.*doc' | sed 's/deleted:/git checkout /' | sh
cd $SRC_DIR/third_party/common
make clean
cd $SRC_DIR/third_party/plus4emu
make clean
cd $SRC_DIR/third_party/circle-stdlib
find . -name 'config.cache' -exec rm -f {} \;
rm -rf build
make clean
make mrproper
cd $SRC_DIR/third_party/circle-stdlib/libs/circle/addon
cd fatfs
make clean
cd ..
cd linux
make clean
cd ..
cd vc4/vchiq
make clean
cd ..
cd interface/bcm_host
make clean
cd ..
cd khronos
make clean
cd ..
cd vcos
make clean
cd ..
cd vmcs_host
make clean
cd ..
cd $SRC_DIR/third_party/circle-stdlib
rm -rf build
git reset --hard
cd libs/circle-newlib
git reset --hard
cd ../circle
git reset --hard
cd ../mbedtls
git reset --hard
cd $SRC_DIR
make clean
rm kernel*img.*