diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-27 13:14:51 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-27 21:57:35 +0100 |
commit | cb1f01a5f80663b2b2975f753ba578bb20349c62 (patch) | |
tree | 349c1c66d18d7c8011be9a37fab107474688f1e5 | |
parent | 7058df3593fbd72d843b2c23d4c0595b4969bce2 (diff) | |
download | systemd-cb1f01a5f80663b2b2975f753ba578bb20349c62.tar.gz |
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.
-rw-r--r-- | src/basic/missing_syscall_def.h | 3 | ||||
-rw-r--r-- | 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 5117075c4d..d87a6a7193 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 eb0dbd9787..d1991f0de3 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) |