From: Zbigniew Jędrzejewski-Szmek Date: Wed, 27 Jan 2021 12:14:51 +0000 (+0100) Subject: missing-syscalls: add license header in the version-controlled generated file X-Git-Tag: v248-rc1~242^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb1f01a5f80663b2b2975f753ba578bb20349c62;p=thirdparty%2Fsystemd.git 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. --- 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)