Skip to content

Commit a0ac2f1

Browse files
committed
flash: minor aesthetic tweak to flash algo script
1 parent 6bef62b commit a0ac2f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/generate_flash_algo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
STACK_SIZE = 0x800
4343

4444
DAPLINK_TEMPLATE = \
45-
"""/* Flash OS Routines (Automagically Generated)
46-
*
45+
"""/*{%- if algo.flash_info.name %} Flash algorithm for {{ algo.flash_info.name.decode('utf-8') }}
46+
*{% endif %}
4747
* DAPLink Interface Firmware
4848
* Copyright (c) {{year}} {{copyright_owner}}
4949
* SPDX-License-Identifier: Apache-2.0
@@ -282,8 +282,8 @@ def main():
282282
'header_size': HEADER_SIZE,
283283
'entry': args.blob_start,
284284
'stack_pointer': sp,
285-
'year': datetime.now().year,
286-
'copyright_owner': args.copyright or "Arm Limited",
285+
'year': datetime.now().year if args.copyright else ("2009-%d" % datetime.now().year),
286+
'copyright_owner': args.copyright or "Arm Limited, All Rights Reserved",
287287
}
288288

289289
text = algo.process_template(tmpl, data_dict)

0 commit comments

Comments
 (0)