rel_1.6.0 init

This commit is contained in:
guocheng.kgc 2020-06-18 20:06:52 +08:00 committed by shengdong.dsd
commit 27b3e2883d
19359 changed files with 8093121 additions and 0 deletions

13
tools/asr5501/add_md5.py Normal file
View file

@ -0,0 +1,13 @@
import sys, hashlib
def MD5(bytes):
md5 = hashlib.md5()
md5.update(bytes)
return md5.hexdigest().decode('hex')
ota_bin = sys.argv[1]
with open(ota_bin, 'rb') as file:
ota_md5_bytes = MD5(file.read())
with open(ota_bin, 'ab') as file:
file.write(ota_md5_bytes)