Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kconfig: convert to SPDX License Identifier

All files in lxdialog/ are licensed under GPL-2.0+, and the rest are
under GPL-2.0. I added GPL-2.0 tags to test scripts in tests/.

Documentation/process/license-rules.rst does not suggest anything
about the flex/bison files. Because flex does not accept the C++
comment style at the very top of a file, I used the C style for
zconf.l, and so for zconf.y for consistency.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

+57 -140
+1 -1
scripts/kconfig/conf.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 5 6 6 #include <ctype.h>
+1 -1
scripts/kconfig/confdata.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 5 6 6 #include <sys/stat.h>
+1 -1
scripts/kconfig/expr.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 5 6 6 #include <stdio.h>
+1 -1
scripts/kconfig/expr.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 5 6 6 #ifndef EXPR_H
+1 -4
scripts/kconfig/gconf.c
··· 1 - /* Hey EMACS -*- linux-c -*- */ 1 + // SPDX-License-Identifier: GPL-2.0 2 2 /* 3 - * 4 3 * Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info> 5 - * Released under the terms of the GNU GPL v2.0. 6 - * 7 4 */ 8 5 9 6 #ifdef HAVE_CONFIG_H
+1 -1
scripts/kconfig/images.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 5 6 6 static const char *xpm_load[] = {
+1 -1
scripts/kconfig/lkc.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 5 6 6 #ifndef LKC_H
+1 -14
scripts/kconfig/lxdialog/checklist.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * checklist.c -- implements the checklist box 3 4 * ··· 6 5 * Stuart Herbert - S.Herbert@sheffield.ac.uk: radiolist extension 7 6 * Alessandro Rubini - rubini@ipvvis.unipv.it: merged the two 8 7 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) 9 - * 10 - * This program is free software; you can redistribute it and/or 11 - * modify it under the terms of the GNU General Public License 12 - * as published by the Free Software Foundation; either version 2 13 - * of the License, or (at your option) any later version. 14 - * 15 - * This program is distributed in the hope that it will be useful, 16 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 - * GNU General Public License for more details. 19 - * 20 - * You should have received a copy of the GNU General Public License 21 - * along with this program; if not, write to the Free Software 22 - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 8 */ 24 9 25 10 #include "dialog.h"
+1 -14
scripts/kconfig/lxdialog/dialog.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0+ */ 1 2 /* 2 3 * dialog.h -- common declarations for all dialog modules 3 4 * 4 5 * AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 - * 6 - * This program is free software; you can redistribute it and/or 7 - * modify it under the terms of the GNU General Public License 8 - * as published by the Free Software Foundation; either version 2 9 - * of the License, or (at your option) any later version. 10 - * 11 - * This program is distributed in the hope that it will be useful, 12 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 - * GNU General Public License for more details. 15 - * 16 - * You should have received a copy of the GNU General Public License 17 - * along with this program; if not, write to the Free Software 18 - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 6 */ 20 7 21 8 #include <sys/types.h>
+1 -14
scripts/kconfig/lxdialog/inputbox.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * inputbox.c -- implements the input box 3 4 * 4 5 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 6 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * as published by the Free Software Foundation; either version 2 10 - * of the License, or (at your option) any later version. 11 - * 12 - * This program is distributed in the hope that it will be useful, 13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 - * GNU General Public License for more details. 16 - * 17 - * You should have received a copy of the GNU General Public License 18 - * along with this program; if not, write to the Free Software 19 - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 7 */ 21 8 22 9 #include "dialog.h"
+1 -14
scripts/kconfig/lxdialog/menubox.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * menubox.c -- implements the menu box 3 4 * 4 5 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 6 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcapw@cfw.com) 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * as published by the Free Software Foundation; either version 2 10 - * of the License, or (at your option) any later version. 11 - * 12 - * This program is distributed in the hope that it will be useful, 13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 - * GNU General Public License for more details. 16 - * 17 - * You should have received a copy of the GNU General Public License 18 - * along with this program; if not, write to the Free Software 19 - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 7 */ 21 8 22 9 /*
+1 -14
scripts/kconfig/lxdialog/textbox.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * textbox.c -- implements the text box 3 4 * 4 5 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 6 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * as published by the Free Software Foundation; either version 2 10 - * of the License, or (at your option) any later version. 11 - * 12 - * This program is distributed in the hope that it will be useful, 13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 - * GNU General Public License for more details. 16 - * 17 - * You should have received a copy of the GNU General Public License 18 - * along with this program; if not, write to the Free Software 19 - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 7 */ 21 8 22 9 #include "dialog.h"
+1 -14
scripts/kconfig/lxdialog/util.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * util.c 3 4 * 4 5 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 6 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * as published by the Free Software Foundation; either version 2 10 - * of the License, or (at your option) any later version. 11 - * 12 - * This program is distributed in the hope that it will be useful, 13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 - * GNU General Public License for more details. 16 - * 17 - * You should have received a copy of the GNU General Public License 18 - * along with this program; if not, write to the Free Software 19 - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 7 */ 21 8 22 9 #include <stdarg.h>
+1 -14
scripts/kconfig/lxdialog/yesno.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * yesno.c -- implements the yes/no box 3 4 * 4 5 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 6 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * as published by the Free Software Foundation; either version 2 10 - * of the License, or (at your option) any later version. 11 - * 12 - * This program is distributed in the hope that it will be useful, 13 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 - * GNU General Public License for more details. 16 - * 17 - * You should have received a copy of the GNU General Public License 18 - * along with this program; if not, write to the Free Software 19 - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 7 */ 21 8 22 9 #include "dialog.h"
+1 -1
scripts/kconfig/mconf.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 * 5 5 * Introduced single menu mode (show all sub-menus in one large tree). 6 6 * 2002-11-06 Petr Baudis <pasky@ucw.cz>
+1 -1
scripts/kconfig/menu.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 5 6 6 #include <ctype.h>
+2 -9
scripts/kconfig/merge_config.sh
··· 1 1 #!/bin/sh 2 + # SPDX-License-Identifier: GPL-2.0 3 + # 2 4 # merge_config.sh - Takes a list of config fragment values, and merges 3 5 # them one by one. Provides warnings on overridden values, and specified 4 6 # values that did not make it to the resulting .config file (due to missed ··· 12 10 # 13 11 # Copyright (c) 2009-2010 Wind River Systems, Inc. 14 12 # Copyright 2011 Linaro 15 - # 16 - # This program is free software; you can redistribute it and/or modify 17 - # it under the terms of the GNU General Public License version 2 as 18 - # published by the Free Software Foundation. 19 - # 20 - # This program is distributed in the hope that it will be useful, 21 - # but WITHOUT ANY WARRANTY; without even the implied warranty of 22 - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23 - # See the GNU General Public License for more details. 24 13 25 14 clean_up() { 26 15 rm -f $TMP_FILE
+2 -3
scripts/kconfig/nconf.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 - * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com? 3 - * Released under the terms of the GNU GPL v2.0. 3 + * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com> 4 4 * 5 5 * Derived from menuconfig. 6 - * 7 6 */ 8 7 #ifndef _GNU_SOURCE 9 8 #define _GNU_SOURCE
+2 -3
scripts/kconfig/nconf.gui.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 - * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com? 3 - * Released under the terms of the GNU GPL v2.0. 3 + * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com> 4 4 * 5 5 * Derived from menuconfig. 6 - * 7 6 */ 8 7 #include "nconf.h" 9 8 #include "lkc.h"
+2 -3
scripts/kconfig/nconf.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 - * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com? 3 - * Released under the terms of the GNU GPL v2.0. 3 + * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com> 4 4 * 5 5 * Derived from menuconfig. 6 - * 7 6 */ 8 7 9 8 #include <ctype.h>
+1 -1
scripts/kconfig/qconf.cc
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 4 * Copyright (C) 2015 Boris Barbulovski <bbarbulovski@gmail.com> 4 - * Released under the terms of the GNU GPL v2.0. 5 5 */ 6 6 7 7 #include <qglobal.h>
+1 -1
scripts/kconfig/qconf.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 5 6 6 #include <QTextBrowser>
+1 -1
scripts/kconfig/streamline_config.pl
··· 1 1 #!/usr/bin/env perl 2 + # SPDX-License-Identifier: GPL-2.0 2 3 # 3 4 # Copyright 2005-2009 - Steven Rostedt 4 - # Licensed under the terms of the GNU GPL License version 2 5 5 # 6 6 # It's simple enough to figure out how this works. 7 7 # If not, then you can ask me at stripconfig@goodmis.org
+1 -1
scripts/kconfig/symbol.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 3 - * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 5 6 6 #include <ctype.h>
+2
scripts/kconfig/tests/auto_submenu/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 1 3 config A 2 4 bool "A" 3 5 default y
+1
scripts/kconfig/tests/auto_submenu/__init__.py
··· 1 + # SPDX-License-Identifier: GPL-2.0 1 2 """ 2 3 Create submenu for symbols that depend on the preceding one. 3 4
+2
scripts/kconfig/tests/choice/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 1 3 config MODULES 2 4 bool "Enable loadable module support" 3 5 option modules
+1
scripts/kconfig/tests/choice/__init__.py
··· 1 + # SPDX-License-Identifier: GPL-2.0 1 2 """ 2 3 Basic choice tests. 3 4
+2
scripts/kconfig/tests/choice_value_with_m_dep/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 1 3 config MODULES 2 4 def_bool y 3 5 option modules
+1
scripts/kconfig/tests/choice_value_with_m_dep/__init__.py
··· 1 + # SPDX-License-Identifier: GPL-2.0 1 2 """ 2 3 Hide tristate choice values with mod dependency in y choice. 3 4
+1
scripts/kconfig/tests/err_recursive_inc/__init__.py
··· 1 + # SPDX-License-Identifier: GPL-2.0 1 2 """ 2 3 Detect recursive inclusion error. 3 4
+2
scripts/kconfig/tests/inter_choice/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 1 3 config MODULES 2 4 def_bool y 3 5 option modules
+1
scripts/kconfig/tests/inter_choice/__init__.py
··· 1 + # SPDX-License-Identifier: GPL-2.0 1 2 """ 2 3 Do not affect user-assigned choice value by another choice. 3 4
+2
scripts/kconfig/tests/new_choice_with_dep/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 1 3 config A 2 4 bool "A" 3 5 help
+1
scripts/kconfig/tests/new_choice_with_dep/__init__.py
··· 1 + # SPDX-License-Identifier: GPL-2.0 1 2 """ 2 3 Ask new choice values when they become visible. 3 4
+2
scripts/kconfig/tests/no_write_if_dep_unmet/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 1 3 config A 2 4 bool "A" 3 5
+1
scripts/kconfig/tests/no_write_if_dep_unmet/__init__.py
··· 1 + # SPDX-License-Identifier: GPL-2.0 1 2 """ 2 3 Do not write choice values to .config if the dependency is unmet. 3 4
+2
scripts/kconfig/tests/rand_nested_choice/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + 1 3 choice 2 4 prompt "choice" 3 5
+1
scripts/kconfig/tests/rand_nested_choice/__init__.py
··· 1 + # SPDX-License-Identifier: GPL-2.0 1 2 """ 2 3 Set random values recursively in nested choices. 3 4
+1 -2
scripts/kconfig/util.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright (C) 2002-2005 Roman Zippel <zippel@linux-m68k.org> 3 4 * Copyright (C) 2002-2005 Sam Ravnborg <sam@ravnborg.org> 4 - * 5 - * Released under the terms of the GNU GPL v2.0. 6 5 */ 7 6 8 7 #include <stdarg.h>
+4 -4
scripts/kconfig/zconf.l
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + /* 3 + * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 4 + */ 1 5 %option nostdinit noyywrap never-interactive full ecs 2 6 %option 8bit nodefault yylineno 3 7 %x ASSIGN_VAL HELP STRING 4 8 %{ 5 - /* 6 - * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 7 - * Released under the terms of the GNU GPL v2.0. 8 - */ 9 9 10 10 #include <assert.h> 11 11 #include <limits.h>
+2 -2
scripts/kconfig/zconf.y
··· 1 - %{ 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 2 /* 3 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 4 - * Released under the terms of the GNU GPL v2.0. 5 4 */ 5 + %{ 6 6 7 7 #include <ctype.h> 8 8 #include <stdarg.h>