aboutsummaryrefslogtreecommitdiff
path: root/parse.py
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2022-08-23 21:13:31 +0200
committerGitHub <noreply@github.com>2022-08-23 12:13:31 -0700
commitdcdf8d35dc906b6232b1e3d01d1392128e049294 (patch)
tree384f0affb71aee8390288b67e2dfb6addde10384 /parse.py
parent0e5bcb5c7c1e01e97b0adb21fbac878acf2efa20 (diff)
downloadriscv-opcodes-dcdf8d35dc906b6232b1e3d01d1392128e049294.zip
riscv-opcodes-dcdf8d35dc906b6232b1e3d01d1392128e049294.tar.gz
riscv-opcodes-dcdf8d35dc906b6232b1e3d01d1392128e049294.tar.bz2
Add copyright holder to the generated file (#140)
The BSD-3-Clause license mentions a copyright notice that has to be retained while redistributing the source code. Copy the copyright notice from LICENSE file to the script, so it get in the generated file. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'parse.py')
-rwxr-xr-xparse.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.py b/parse.py
index 4a6f517..90f1b41 100755
--- a/parse.py
+++ b/parse.py
@@ -853,6 +853,8 @@ def make_c(instr_dict):
enc_file = open('encoding.out.h','w')
enc_file.write(f'''/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2022 RISC-V International */
+
/*
* This file is auto-generated by running 'make' in
* https://github.com/riscv/riscv-opcodes ({commit})