From c8e18dfec4e92f5ec8aad63c82053bf170b4d169 Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Tue, 29 Apr 2025 11:43:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=B3=E9=97=AD=E6=89=AB=E6=8F=8F?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cc10749..45f57a5 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,18 @@ TOOLCHAIN_PATH=./mac DOWNLOAD_PATH=../logs SCAN_PATH=../scan +# 下载轨迹 stud: cd $(TOOLCHAIN_PATH) && \ ./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $(DOWNLOAD_PATH) +# 下载hilog日志 hilog: cd $(TOOLCHAIN_PATH) && \ TIMESTAMP=$$(date +%Y%m%d%H%M%S) && \ ./hdc shell "tar -czvf /data/$${TIMESTAMP}_log.tar.gz /data/log/" && \ ./hdc file recv /data/$${TIMESTAMP}_log.tar.gz $(DOWNLOAD_PATH) && \ ./hdc shell "rm -rf /data/$${TIMESTAMP}_log.tar.gz" +# 打开hilog open: cd $(TOOLCHAIN_PATH) && \ ./hdc shell hilog -w stop && \ @@ -19,10 +22,11 @@ open: ./hdc shell hilog -p off && \ ./hdc shell hilog -b D ./hdc shell hilog -w start -t kmsg -m none +# 删除 delete: # 删除当前目录的data文件夹 rm -rf $(DOWNLOAD_PATH)/data - +# 关闭扫描脚本 scan: cd $(TOOLCHAIN_PATH) && \ ./hdc shell mount -o remount,rw / \