hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/bin/bash
 
function dirclean()
{
   make  \
       dbserver-dirclean \
       common_algorithm-dirclean \
       ipcweb-backend-dirclean \
       libgdbus-dirclean \
       libIPCProtocol-dirclean \
       librkdb-dirclean \
       mediaserver-dirclean \
       camera_engine_rkaiq-dirclean \
       netserver-dirclean \
       storage_manager-dirclean \
       rkmedia-dirclean \
       rk_oem-dirclean \
       mpp-dirclean \
       ipc-daemon-dirclean \
       rockface-dirclean \
       CallFunIpc-dirclean \
       isp2-ipc-dirclean \
   ###
}
 
function sync_mod()
{
   .repo/repo/repo sync -c --no-tags \
       app/dbserver \
       app/ipcweb-backend \
       app/libgdbus \
       app/libIPCProtocol \
       app/librkdb \
       app/mediaserver \
       app/netserver \
       app/ipc-daemon \
       app/storage_manager \
       external/camera_engine_rkaiq \
       external/rkmedia \
       external/common_algorithm \
       external/rockface \
       external/mpp \
       external/CallFunIpc \
       external/isp2-ipc \
###
}
 
function rebuild()
{
   make  \
       dbserver-rebuild \
       common_algorithm-rebuild \
       libgdbus-rebuild \
       libIPCProtocol-rebuild \
       librkdb-rebuild \
       CallFunIpc-rebuild \
       camera_engine_rkaiq-rebuild \
       isp2-ipc-rebuild \
       ipcweb-backend-rebuild \
       netserver-rebuild \
       storage_manager-rebuild \
       rk_oem-rebuild \
       mpp-rebuild \
       ipc-daemon-rebuild \
       rockface-rebuild \
       rkmedia-rebuild \
       mediaserver-rebuild \
###
}
 
unset NEW_OPTS
if [ "${RK_CFG_BUILDROOT}x" != "x" ];then
export TARGET_OUTPUT_DIR="$TOP_DIR/buildroot/output/$RK_CFG_BUILDROOT"
else
if [ "${RK_CFG_RAMBOOT}x" != "x" ];then
export TARGET_OUTPUT_DIR="$TOP_DIR/buildroot/output/$RK_CFG_RAMBOOT"
fi
fi
for option in ${OPTIONS}; do
        echo "processing board option: $option"
        case $option in
                # handle board commands
                app-clean)
                       dirclean
                       exit 0
                        ;;
                app-rebuild)
                       rebuild
                       exit 0
                        ;;
                app-sync)
                       sync_mod
                       exit 0
                        ;;
                *)
                        NEW_OPTS="$NEW_OPTS $option"
                        ;;
        esac
done
export OPTIONS=$NEW_OPTS