Skip to contentSkip to conversation

linux-user: Add license in files generated by scripts/gensyscalls.sh

PATCH In review Philippe Mathieu-Daudé 2 participants 3 messages Nov 17, 2021 – Dec 15, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: Add license in files generated by scripts/gensyscalls.sh

---
 scripts/gensyscalls.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/gensyscalls.sh +2 -1
index 8fb450e3c96..aee5cc64a15 100755
@@ -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
#1 lore raw

ping?

Quoted 20 lines · Philippe Mathieu-Daudé
---
 scripts/gensyscalls.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/gensyscalls.sh +2 -1
index 8fb450e3c96..aee5cc64a15 100755
@@ -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"
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 11 lines · Philippe Mathieu-Daudé
---
 scripts/gensyscalls.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/gensyscalls.sh +0 -0
index 8fb450e3c96..aee5cc64a15 100755

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