From cb1f01a5f80663b2b2975f753ba578bb20349c62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 27 Jan 2021 13:14:51 +0100 Subject: [PATCH] missing-syscalls: add license header in the version-controlled generated file If the file was always generated on the fly, the header would be pointless. But since we distribute it, it should be there. C.f. a0e150b2f4933ae7546fce9a2773b0208b2dc269. This was forgotten in 35b42e560039fd87d4ae4d99cd54d1d4e89710b1. --- src/basic/missing_syscall_def.h | 3 ++- src/basic/missing_syscalls.py | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/basic/missing_syscall_def.h b/src/basic/missing_syscall_def.h index 5117075c4de..d87a6a7193b 100644 --- a/src/basic/missing_syscall_def.h +++ b/src/basic/missing_syscall_def.h @@ -1,4 +1,5 @@ -/* This file is generated. Do not edit! */ +/* SPDX-License-Identifier: LGPL-2.1-or-later + * This file is generated. Do not edit! */ #ifndef __IGNORE_bpf # if defined(__aarch64__) diff --git a/src/basic/missing_syscalls.py b/src/basic/missing_syscalls.py index eb0dbd9787c..d1991f0de30 100644 --- a/src/basic/missing_syscalls.py +++ b/src/basic/missing_syscalls.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: LGPL-2.1-or-later + import sys import functools @@ -99,7 +101,10 @@ def print_syscall_def(syscall, tables, out): file=out) def print_syscall_defs(syscalls, tables, out): - print('/* This file is generated. Do not edit! */\n', file=out) + print('''\ +/* SPDX-License-Identifier: LGPL-2.1-or-later + * This file is generated. Do not edit! */ +''' , file=out) for syscall in syscalls: print_syscall_def(syscall, tables, out) -- 2.47.3