summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/libcamera/gen-ipa-pub-key.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcamera/gen-ipa-pub-key.py b/src/libcamera/gen-ipa-pub-key.py
index ad575b18..a4a1f7b7 100755
--- a/src/libcamera/gen-ipa-pub-key.py
+++ b/src/libcamera/gen-ipa-pub-key.py
@@ -28,7 +28,9 @@ def main(argv):
print('Please install openssl to sign IPA modules')
return 1
- ipa_key = ', '.join(['0x%02x' % c for c in ret.stdout])
+ ipa_key = ['0x%02x' % c for c in ret.stdout]
+ ipa_key = [', '.join(ipa_key[bound:bound + 8]) for bound in range(0, len(ipa_key), 8)]
+ ipa_key = ',\n\t'.join(ipa_key)
data = {'ipa_key': ipa_key}
template = open(template, 'rb').read()