Просмотр исходного кода

Merge branch 'master' of https://gitee.com/openLuat/LuatOS

alienwalker 3 лет назад
Родитель
Сommit
02e383dd5f
2 измененных файлов с 7 добавлено и 2 удалено
  1. 5 0
      .gitee/ci/air101.yml
  2. 2 2
      tools/make_doc_file.py

+ 5 - 0
.gitee/ci/air101.yml

@@ -42,10 +42,15 @@ steps:
     - python3 /hdd/ci/build/luadb.py disk/
     - cd ..
 
+    - datename=$(date +%Y%m%d-%H%M%S)
+    - mkdir /hdd/ci/fw_bak/$datename
+    - cp build/out/AIR101.fls /hdd/ci/fw_bak/$datename/AIR101.fls
     - cp mklfs/disk.fs build/out/script.bin
     - /hdd/ci/build/wm_tool -b build/out/script.bin -it 1 -fc 0 -ih 20008000 -ra 81E0000 -ua 0 -nh 0  -un 0 -o build/out/script
     - ls build/out/ -la
+    - cp build/out/script.img /hdd/ci/fw_bak/$datename/script.img
     - cat build/out/script.img >> build/out/AIR101.fls
+    - cp build/out/AIR101.fls /hdd/ci/fw_bak/$datename/all.fls
     - ls build/out/ -la
     - rm /hdd/ci/flash/*
     - cp build/out/AIR101.fls /hdd/ci/flash

+ 2 - 2
tools/make_doc_file.py

@@ -13,8 +13,8 @@ print("getting bsp.h files...")
 for bsp in bsp_header_list:
     print("getting "+bsp["name"]+"...")
     res = ""
-    #有时候获取不到完整的数据,看看啥原因,后需要改 todo
-    while len(res) < 200:
+    #有时候获取不到完整的数据,报错的页面就是html
+    while len(res) < 200 or res.find("</title>"):
         res = requests.get(bsp["url"]).text
         print(res)
     bsp["url"] = res