Ver Fonte

fix: 云编译64bit固件,info.json没有正确更新,导致luatools下载脚本后启动报错,无法运行

Wendal Chen há 1 ano atrás
pai
commit
7de8d97d0e
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      luatos/makesoc.py

+ 2 - 1
luatos/makesoc.py

@@ -77,8 +77,9 @@ if __name__=='__main__':
             version_data = re.findall(r'#define LUAT_BSP_VERSION "(.+?)"', line)#[0]
             if version_data:
                 bsp_version = version_data[0]
-            if line == "#define LUAT_CONF_VM_64bit\r" or line == "#define LUAT_CONF_VM_64bit\n":
+            if line.startswith("#define LUAT_CONF_VM_64bit"):
                 vm_64bit = True
+                print("固件是64bit的VM")
 
     out_file_name="LuatOS-SoC_{}_{}".format(bsp_version, bsp)
     out_file = os.path.join(out_path,out_file_name)