linux-user: Add license in files generated by scripts/gensyscalls.sh
PATCH 1/1 linux-user: Add license in files generated by scripts/gensyscalls.sh
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- scripts/gensyscalls.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/gensyscalls.sh +2 -1
@@ -75,7 +75,8 @@ generate_syscall_nr() file="$3" guard="$(upper LINUX_USER_$(qemu_arch $arch)_$(basename "$file"))" - (echo "/*" + (echo "/* SPDX-License-Identifier: GPL-2.0-or-later */" + echo "/*" echo " * This file contains the system call numbers." echo " * Do not modify." echo " * This file is generated by scripts/gensyscalls.sh"
Signature · 1 line
2.31.1
ping?
Quoted 20 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- scripts/gensyscalls.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)scripts/gensyscalls.sh +2
-1@@ -75,7 +75,8 @@ generate_syscall_nr() file="$3" guard="$(upper LINUX_USER_$(qemu_arch $arch)_$(basename "$file"))" - (echo "/*" + (echo "/* SPDX-License-Identifier: GPL-2.0-or-later */" + echo "/*" echo " * This file contains the system call numbers." echo " * Do not modify." echo " * This file is generated by scripts/gensyscalls.sh"
Quoted 11 lines · Philippe Mathieu-Daudé
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- scripts/gensyscalls.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)scripts/gensyscalls.sh +0
-0
scripts/gensyscalls.sh generate_syscall_nr() · line 78
Quoted 5 lines
scripts/gensyscalls.sh +1
-1@@ -75,7 +75,8 @@ generate_syscall_nr() file="$3" guard="$(upper LINUX_USER_$(qemu_arch $arch)_$(basename "$file"))" - (echo "/*" + (echo "/* SPDX-License-Identifier: GPL-2.0-or-later */"
The gensyscalls.sh script itself is GPL-2-or-later, but the output files are generated from the Linux kernel's headers, which are generally GPL-2-only. As a non-lawyer, I'm not sure to what extent copyright adheres in a list of names-and-numbers, but marking the generated headers as GPL-2.0-only rather than -or-later seems to me like it better reflects the intention of the header file authors. It makes no difference to QEMU in practice because we are overall GPL-2.0-only anyway.
thanks
-- PMM