]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing-syscalls: add license header in the version-controlled generated file
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 Jan 2021 12:14:51 +0000 (13:14 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 Jan 2021 20:57:35 +0000 (21:57 +0100)
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
src/basic/missing_syscalls.py

index 5117075c4de30c562303451221ee1ab6b3cf9a4c..d87a6a7193bf55ad7246ed22fcdcc24542e30b79 100644 (file)
@@ -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__)
index eb0dbd9787c22a756262b804ade190eb60056849..d1991f0de30642e4bf8eed7dc8e68ac4fe9c8025 100644 (file)
@@ -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)