|
|
@@ -17,6 +17,7 @@
|
|
|
#PRJS="PRJ_STSC_I3_O3"
|
|
|
#PRJS="PRJ_STSC_I3_O1_OLED"
|
|
|
#PRJS="PRJ_SG_I3_O3"
|
|
|
+PRJS="PRJ_ESOUTH_DC_I1_O4_RGB5"
|
|
|
#PRJS="PRJ_TEST"
|
|
|
#PRJS="PRJ_TEST_AC_I1_O1"
|
|
|
#PRJS="PRJ_TEST_AC_I3_O1"
|
|
|
@@ -32,9 +33,12 @@
|
|
|
#PRJS="PRJ_LITECH_AC_I1_O1 PRJ_LITECH_AC_I3_O1 PRJ_XIAN_AC_I1_O1_P4 PRJ_XIAN_AC_I1_O1_P8"
|
|
|
#PRJS="PRJ_IP_AC_I3_O3"
|
|
|
#PRJS="PRJ_IP_AC_I3_O1"
|
|
|
-PRJS="PRJ_IP_AC_I1_O1"
|
|
|
+#PRJS="PRJ_IP_AC_I1_O1"
|
|
|
+
|
|
|
+
|
|
|
fulldir=$(realpath $0)
|
|
|
curdir=$(dirname $fulldir)
|
|
|
+ip_flag=0
|
|
|
|
|
|
custdir=$curdir/cust_data
|
|
|
name=null
|
|
|
@@ -45,6 +49,7 @@ appdir=$rootdir/root/run/app
|
|
|
function prj_enable()
|
|
|
{
|
|
|
fcfg=$curdir/pro/config/cfg.h
|
|
|
+ fmak=$curdir/pro/CMakefile.txt
|
|
|
|
|
|
#clear space
|
|
|
sed -i 's|^[[:space:]]\(#define PRJ_*\)|\1|g' $fcfg
|
|
|
@@ -58,27 +63,32 @@ function prj_enable()
|
|
|
function prj_unmask()
|
|
|
{
|
|
|
prj=$1
|
|
|
-
|
|
|
}
|
|
|
|
|
|
function do_copy()
|
|
|
{
|
|
|
echo do_copy ...
|
|
|
|
|
|
- if [[ "$1" == "PRJ_IP_"* ]];then
|
|
|
+ if [[ "$1" == "PRJ_IP_"* ]]; then
|
|
|
+ ip_flag=1
|
|
|
+ fi
|
|
|
+
|
|
|
+ if [ $ip_flag -eq 1 ]; then
|
|
|
rootdir=$curdir/output/t113s/pack_dir
|
|
|
appdir=$rootdir/mnt/UDISK/app
|
|
|
fi
|
|
|
+
|
|
|
mkdir -p $appdir/image
|
|
|
mkdir -p $appdir/cert
|
|
|
|
|
|
cp -f $custdir/cert/server.* $appdir/cert/
|
|
|
cp -f $custdir/changes.txt $appdir/
|
|
|
cp -f $custdir/db/pdu_dat.db $appdir/
|
|
|
- if [[ "$1" == "PRJ_IP_"* ]];then
|
|
|
- cp -f $custdir/qt/IP/Qt_Test $appdir/
|
|
|
+
|
|
|
+ if [ $ip_flag -eq 1 ]; then
|
|
|
+ cp -f $custdir/qt/IP/Qt_Test $appdir/
|
|
|
else
|
|
|
- cp -f $custdir/qt/Qt_Test $appdir/
|
|
|
+ cp -f $custdir/qt/Qt_Test $appdir/
|
|
|
fi
|
|
|
if [ "$1" = "PRJ_XIAN_AC_I1_O1_P4" ]; then
|
|
|
name=ac_in1_out1_p4_xian
|
|
|
@@ -159,6 +169,10 @@ function do_copy()
|
|
|
name=ac_in3_out1_stsc_oled
|
|
|
cp -f $custdir/logo/logo_neuter.png $appdir/image/logo.png
|
|
|
rm -f $appdir/Qt_Test
|
|
|
+ elif [ "$1" = "PRJ_ESOUTH_DC_I1_O4_RGB5" ];then
|
|
|
+ name=dc_in1_out4_esouth_rgb5
|
|
|
+ cp -f $custdir/logo/logo_neuter.png $appdir/image/logo.png
|
|
|
+ cp -f $custdir/qt/Qt_Test_rgb_ts $appdir/Qt_Test
|
|
|
elif [ "$1" = "PRJ_IP_AC_I3_O1" ];then
|
|
|
name=ip_ac_in3_out1_release
|
|
|
cp -f $custdir/logo/logo_neuter.png $appdir/image/logo.png
|
|
|
@@ -171,11 +185,7 @@ function do_copy()
|
|
|
fi
|
|
|
|
|
|
rm -rf $appdir/../web
|
|
|
-# if [ "$1" = "PRJ_IP_*" ]; then
|
|
|
-# cp -rf $custdir/web/unique $appdir/../web
|
|
|
-# else
|
|
|
- cp -rf $custdir/web/unique $appdir/../web
|
|
|
-# fi
|
|
|
+ cp -rf $custdir/web/unique $appdir/../web
|
|
|
|
|
|
prj_enable $1
|
|
|
}
|