script/Makefile

24 lines
805 B
Makefile
Raw Normal View History

2025-01-21 14:32:39 +08:00
TOOLCHAIN_PATH=./mac
2025-01-21 11:30:03 +08:00
DOWNLOAD_PATH=../logs
2025-03-07 07:54:33 +08:00
stud:
2025-01-21 11:30:03 +08:00
cd $(TOOLCHAIN_PATH) && \
./hdc file recv /mnt/hmdfs/100/account/device_view/local/files/duolun/logs $(DOWNLOAD_PATH)
2025-03-07 07:54:33 +08:00
hilog:
2025-01-21 11:30:03 +08:00
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"
open:
cd $(TOOLCHAIN_PATH) && \
./hdc shell hilog -w stop && \
./hdc shell hilog -r && \
./hdc shell hilog -w start -l 100M -m none && \
./hdc shell hilog -Q pidoff && \
./hdc shell hilog -p off && \
./hdc shell hilog -b D
2025-03-05 17:19:49 +08:00
./hdc shell hilog -w start -t kmsg -m none
2025-03-07 07:54:33 +08:00
delete:
# 删除当前目录的data文件夹
rm -rf $(DOWNLOAD_PATH)/data