qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] linux-user: Add license in files generated by scripts/gensyscalls.sh
@ 2021-11-17 17:48 Philippe Mathieu-Daudé
  2021-12-15 10:35 ` Philippe Mathieu-Daudé
  2021-12-15 12:05 ` Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-11-17 17:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: Laurent Vivier, Philippe Mathieu-Daudé

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 scripts/gensyscalls.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/gensyscalls.sh b/scripts/gensyscalls.sh
index 8fb450e3c96..aee5cc64a15 100755
--- a/scripts/gensyscalls.sh
+++ b/scripts/gensyscalls.sh
@@ -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.31.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] linux-user: Add license in files generated by scripts/gensyscalls.sh
  2021-11-17 17:48 [PATCH] linux-user: Add license in files generated by scripts/gensyscalls.sh Philippe Mathieu-Daudé
@ 2021-12-15 10:35 ` Philippe Mathieu-Daudé
  2021-12-15 12:05 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-12-15 10:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: Laurent Vivier

ping?

On 11/17/21 18:48, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  scripts/gensyscalls.sh | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/gensyscalls.sh b/scripts/gensyscalls.sh
> index 8fb450e3c96..aee5cc64a15 100755
> --- a/scripts/gensyscalls.sh
> +++ b/scripts/gensyscalls.sh
> @@ -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"
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] linux-user: Add license in files generated by scripts/gensyscalls.sh
  2021-11-17 17:48 [PATCH] linux-user: Add license in files generated by scripts/gensyscalls.sh Philippe Mathieu-Daudé
  2021-12-15 10:35 ` Philippe Mathieu-Daudé
@ 2021-12-15 12:05 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2021-12-15 12:05 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé; +Cc: qemu-devel, Laurent Vivier

On Wed, 17 Nov 2021 at 17:52, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  scripts/gensyscalls.sh | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/gensyscalls.sh b/scripts/gensyscalls.sh
> index 8fb450e3c96..aee5cc64a15 100755
> --- a/scripts/gensyscalls.sh
> +++ b/scripts/gensyscalls.sh
> @@ -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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-15 12:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17 17:48 [PATCH] linux-user: Add license in files generated by scripts/gensyscalls.sh Philippe Mathieu-Daudé
2021-12-15 10:35 ` Philippe Mathieu-Daudé
2021-12-15 12:05 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).