mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
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.a0e150b2f4
. This was forgotten in35b42e5600
.
This commit is contained in:
parent
7058df3593
commit
cb1f01a5f8
@ -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__)
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user