浏览代码

增加屏蔽文件列表和目录创建;

lch 4 月之前
父节点
当前提交
1919c9904a
共有 2 个文件被更改,包括 26 次插入5 次删除
  1. 2 1
      .gitignore
  2. 24 4
      dtu/dtu_main_t536/sh/t536/mybuild_for_gw_public_t536

+ 2 - 1
.gitignore

@@ -1,6 +1,7 @@
 dtu/dtu_main_t536/tmp
 dtu/dtu_main_t536/out
 dtu/dtu_main_t536/ko
+dtu/dtu_main_t536/dtu_t536
 .cache
 compile_commands.json
-dtu/dtu_main_t536/compile_commands.json
+dtu/dtu_main_t536/compile_commands.json

+ 24 - 4
dtu/dtu_main_t536/sh/t536/mybuild_for_gw_public_t536

@@ -97,6 +97,10 @@ cp -arf $APP_PUB_PWD ./tmp/
 cp -arf $XENOMAI_PWD ./tmp/
 cp -arf $FUXI_RT_LITE_PWD ./tmp/
 
+if [ ! -d ./ko ]; then
+   mkdir ./ko
+fi
+
 if [ -e ./ko/$app_dir/ ]; then
    rm -rf ko/"$app_dir"/*.*
 else
@@ -143,6 +147,7 @@ UPTIME1=`cat /proc/uptime`
 
 # /tmp/bear/bin/bear -- make -j6 v=1
 bear -- make -j6
+# make -j6
 
 COMPILE_STATUS=$?
 
@@ -160,9 +165,13 @@ fi
 echo "make $app_name successful......"
 # CURRENT_DIR=$(cd $(dirname $0); pwd)
 # echo $CURRENT_DIR
+
 ./crc_host -c "$app_name"
+crc_status=$?
+echo "crc_host result : $crc_status"
 
-if [ $? -ne 0 ]; then
+if [ $crc_status -ne 0 ]; then
+    echo "2222222"
   	rm -rf ./ko/$app_dir/*.*
 	./crc_host -a "$app_name"
 	
@@ -178,10 +187,21 @@ if [ $? -ne 0 ]; then
   
   #
   cp "$app_name" ko/"$app_dir"/
-  cp "$app_name" /mnt/f/Build/out/
-#   cp "$app_name" /mnt/hgfs/embedsky_share
-fi
 
+  target_dir="/mnt/f/Build/out/"
+  if [ -e "$target_dir" ]; then
+  # ¼ì²éÔ´ÎļþÊÇ·ñ´æÔÚ
+    if [ -e "$app_name" ]; then
+      cp "$app_name" "$target_dir"
+      echo "Copied $app_name to $target_dir"
+    else
+      echo "Source file $app_name does not exist."
+    fi
+  else
+    echo "Directory $target_dir does not exist."
+  fi
+
+fi
 
 #ip="192.168.1.208"