Skip to content

Commit

Permalink
scripts: change copyright headers for kernel rules
Browse files Browse the repository at this point in the history
Fixes #197
  • Loading branch information
llandwerlin-intel committed Mar 11, 2019
1 parent f713aa4 commit bee8714
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions scripts/i915-perf-kernelgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'] + "[] = {")
Expand Down Expand Up @@ -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 <linux/sysfs.h>")
Expand Down

0 comments on commit bee8714

Please sign in to comment.