From bee8714732e739dec53d0e77572d251c5cb0434d Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 11 Mar 2019 15:45:25 +0000 Subject: [PATCH] scripts: change copyright headers for kernel rules Fixes https://github.com/rib/gputop/issues/197 --- scripts/i915-perf-kernelgen.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/scripts/i915-perf-kernelgen.py b/scripts/i915-perf-kernelgen.py index 410173c4..b950657d 100755 --- a/scripts/i915-perf-kernelgen.py +++ b/scripts/i915-perf-kernelgen.py @@ -91,9 +91,8 @@ def splice_ugte(args): mnemonic_syms["$SubsliceMask"] = "subslices" mnemonic_syms["$SkuRevisionId"] = "sku" -copyright = """/* - * SPDX-License-Identifier: MIT - * +source_copyright = """// SPDX-License-Identifier: MIT +/* * Copyright © 2018 Intel Corporation * * Autogenerated file by GPU Top : https://github.com/rib/gputop @@ -102,6 +101,15 @@ def splice_ugte(args): """ +header_copyright = """/* SPDX-License-Identifier: MIT */ +/* + * Copyright © 2018 Intel Corporation + * + * Autogenerated file by GPU Top : https://github.com/rib/gputop + * DO NOT EDIT manually! + */ + +""" def output_b_counter_config(metric_set, config): c("\nstatic const struct i915_oa_reg b_counter_config_" + metric_set['perf_name_lc'] + "[] = {") @@ -322,11 +330,11 @@ def output_sysfs_code(sets): c = codegen.Codegen(args.c_out); c.use_tabs = True -h(copyright) +h(header_copyright) h("#ifndef __I915_OA_" + chipset + "_H__\n") h("#define __I915_OA_" + chipset + "_H__\n\n") -c(copyright) +c(source_copyright) if args.sysfs: c("#include ")