-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathBuildEnv
90 lines (76 loc) · 1.66 KB
/
BuildEnv
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
echo "Please select a product which you want to compile:"
echo "6) NR3116"
echo "7) NR2116"
echo "8) NR3516/NR3524/NR3532"
echo "9) NR1008/NR1004"
echo "0) Exit"
read -n 1 char
cp -rf GuiSample1/makefile_common GuiSample1/makefile
rm -f Common/lib/debug/*
rm -f Common/lib/lib*.a
rm -f Common/lib/tl_hslib_nvr.a
rm -f Common/lib/onvif/libyzonvif.so
rm -rf ./tmp.mak
sync
echo ""
if [ "$char" == "6" ];then
echo "Build env for 3531"
\cp Makefile3531.param Makefile.param
echo "MMUCHIP=CHIP_HISI3531" >>./tmp.mak
echo "3531 environment built"
echo -e ""
echo -e ""
fi
if [ "$char" == "7" ];then
echo "Build env for R21xx"
\cp Makefile3521.param Makefile.param
echo "MMUCHIP=CHIP_HISI3521" >>./tmp.mak
echo "3521 environment built for R21xx"
echo -e ""
echo -e ""
fi
if [ "$char" == "8" ];then
echo "Build env for NR35xx"
\cp Makefile3535.param Makefile.param
echo "MMUCHIP=CHIP_HISI3521" >>./tmp.mak
echo "3535 environment built for NR35xx"
echo -e ""
echo -e ""
fi
if [ "$char" == "9" ];then
echo "Build env for R10xx"
\cp Makefile3520d.param Makefile.param
echo "MMUCHIP=CHIP_HISI3521" >>./tmp.mak
echo "3520d environment built for R10xx"
echo -e ""
echo -e ""
fi
echo "Release or Debug :"
echo "1) Release"
echo "2) Debug"
#read -n 1 char2
char2=1
if [ "$char2" == "1" ];then
echo ""
echo "MYDEFINE=RELEASE_VERSION" >>./tmp.mak
echo "this is a release version!"
echo ""
fi
if [ "$char2" == "2" ];then
echo ""
echo "MYDEFINE=DEBUG_VERSION" >>./tmp.mak
echo "this is a debug version!"
echo ""
fi
if [ "$char" == "6" ];then
echo ""
fi
if [ "$char" == "7" ];then
echo ""
fi
if [ "$char" == "8" ];then
echo ""
fi
if [ "$char" == "9" ];then
echo ""
fi