History

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.

Masahiro Yamada committed 7 years ago

Commit 0c874101 parent 979f2b242 files · +57 −140Browse files

Showing the changes to scripts (42 of 42 files). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t