|
|
@ -22,6 +22,7 @@ from __future__ import print_function
|
|
|
|
|
|
|
|
|
|
|
|
import argparse
|
|
|
|
import argparse
|
|
|
|
import hashlib
|
|
|
|
import hashlib
|
|
|
|
|
|
|
|
import filecmp
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import platform
|
|
|
|
import platform
|
|
|
@ -575,8 +576,11 @@ def main():
|
|
|
|
os.path.join(abs_toolchain_target_dir, 'sysarm64'),
|
|
|
|
os.path.join(abs_toolchain_target_dir, 'sysarm64'),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
with open(os.path.join(target_dir, '..', 'data.json'), 'w') as f:
|
|
|
|
data_json = json.dumps(data)
|
|
|
|
json.dump(data, f)
|
|
|
|
data_path = os.path.join(target_dir, '..', 'data.json')
|
|
|
|
|
|
|
|
if not os.path.exists(data_path) or open(data_path).read() != data_json:
|
|
|
|
|
|
|
|
with open(data_path, 'w') as f:
|
|
|
|
|
|
|
|
f.write(data_json)
|
|
|
|
|
|
|
|
|
|
|
|
if got_new_toolchain:
|
|
|
|
if got_new_toolchain:
|
|
|
|
current_hashes = CalculateToolchainHashes(target_dir, False)
|
|
|
|
current_hashes = CalculateToolchainHashes(target_dir, False)
|
|
|
@ -589,8 +593,9 @@ def main():
|
|
|
|
SaveTimestampsAndHash(target_dir, args.desired_hash)
|
|
|
|
SaveTimestampsAndHash(target_dir, args.desired_hash)
|
|
|
|
|
|
|
|
|
|
|
|
if args.output_json:
|
|
|
|
if args.output_json:
|
|
|
|
shutil.copyfile(os.path.join(target_dir, '..', 'data.json'),
|
|
|
|
if (not os.path.exists(args.output_json) or
|
|
|
|
args.output_json)
|
|
|
|
not filecmp.cmp(data_path, args.output_json)):
|
|
|
|
|
|
|
|
shutil.copyfile(data_path, args.output_json)
|
|
|
|
|
|
|
|
|
|
|
|
EnableCrashDumpCollection()
|
|
|
|
EnableCrashDumpCollection()
|
|
|
|
|
|
|
|
|
|
|
|