panfrost: Update copyright year for new counter definitions

The source files generated from counter XML files should now contain
a copyright corresponding to the year of generation.

Signed-off-by: Lukas Zapolskas <lukas.zapolskas@arm.com>
This commit is contained in:
Lukas Zapolskas 2025-03-19 14:50:13 +00:00 committed by Christoph Pillmayer
parent d102217665
commit f34b53396a

View file

@ -4,6 +4,7 @@
import argparse
import textwrap
import os
import datetime
import xml.etree.ElementTree as et
@ -87,12 +88,12 @@ def main():
copyright = textwrap.dedent("""\
/* Autogenerated file, DO NOT EDIT manually! generated by {}
*
* Copyright © 2021 Arm Limited
* Copyright © 2021 Collabora Ltd.
* Copyright © {year} Arm Limited
* Copyright © {year} Collabora Ltd.
* SPDX-License-Identifier: MIT
*/
""").format(os.path.basename(__file__))
""").format(os.path.basename(__file__), year=datetime.datetime.now().year)
h.write(copyright)
h.write(textwrap.dedent("""\