Tools: put ArduPilot keys first

makes key changing a bit easier for vendors
This commit is contained in:
Andrew Tridgell 2022-09-02 21:05:17 +10:00
parent 11b12cd4c8
commit 0388460c92
1 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,7 @@ offset += 8
desc = b'' desc = b''
desc_len = 0 desc_len = 0
keys = args.keys[:] keys = []
if not args.omit_ardupilot_keys: if not args.omit_ardupilot_keys:
print("Adding ArduPilot keys") print("Adding ArduPilot keys")
@ -47,6 +47,8 @@ if not args.omit_ardupilot_keys:
if f.endswith(".dat"): if f.endswith(".dat"):
keys.append(os.path.relpath(os.path.join(keydir, f))) keys.append(os.path.relpath(os.path.join(keydir, f)))
keys += args.keys[:]
if len(keys) > max_keys: if len(keys) > max_keys:
print("Too many key files %u, max is %u" % (len(keys), max_keys)) print("Too many key files %u, max is %u" % (len(keys), max_keys))
sys.exit(1) sys.exit(1)