1
0
Fork 0

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>
hifive-unleashed-5.1
Masahiro Yamada 2018-12-18 21:13:35 +09:00
parent 979f2b2f79
commit 0c87410010
42 changed files with 57 additions and 140 deletions

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
#include <ctype.h> #include <ctype.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
#include <stdio.h> #include <stdio.h>

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
#ifndef EXPR_H #ifndef EXPR_H

View File

@ -1,9 +1,6 @@
/* Hey EMACS -*- linux-c -*- */ // SPDX-License-Identifier: GPL-2.0
/* /*
*
* Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info> * Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info>
* Released under the terms of the GNU GPL v2.0.
*
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
static const char *xpm_load[] = { static const char *xpm_load[] = {

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
#ifndef LKC_H #ifndef LKC_H

View File

@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* checklist.c -- implements the checklist box * checklist.c -- implements the checklist box
* *
@ -5,20 +6,6 @@
* Stuart Herbert - S.Herbert@sheffield.ac.uk: radiolist extension * Stuart Herbert - S.Herbert@sheffield.ac.uk: radiolist extension
* Alessandro Rubini - rubini@ipvvis.unipv.it: merged the two * Alessandro Rubini - rubini@ipvvis.unipv.it: merged the two
* MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "dialog.h" #include "dialog.h"

View File

@ -1,21 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/* /*
* dialog.h -- common declarations for all dialog modules * dialog.h -- common declarations for all dialog modules
* *
* AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <sys/types.h> #include <sys/types.h>

View File

@ -1,22 +1,9 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* inputbox.c -- implements the input box * inputbox.c -- implements the input box
* *
* ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
* MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "dialog.h" #include "dialog.h"

View File

@ -1,22 +1,9 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* menubox.c -- implements the menu box * menubox.c -- implements the menu box
* *
* ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
* MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcapw@cfw.com) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcapw@cfw.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* /*

View File

@ -1,22 +1,9 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* textbox.c -- implements the text box * textbox.c -- implements the text box
* *
* ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
* MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "dialog.h" #include "dialog.h"

View File

@ -1,22 +1,9 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* util.c * util.c
* *
* ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
* MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <stdarg.h> #include <stdarg.h>

View File

@ -1,22 +1,9 @@
// SPDX-License-Identifier: GPL-2.0+
/* /*
* yesno.c -- implements the yes/no box * yesno.c -- implements the yes/no box
* *
* ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk)
* MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "dialog.h" #include "dialog.h"

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
* *
* Introduced single menu mode (show all sub-menus in one large tree). * Introduced single menu mode (show all sub-menus in one large tree).
* 2002-11-06 Petr Baudis <pasky@ucw.cz> * 2002-11-06 Petr Baudis <pasky@ucw.cz>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
#include <ctype.h> #include <ctype.h>

View File

@ -1,4 +1,6 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: GPL-2.0
#
# merge_config.sh - Takes a list of config fragment values, and merges # merge_config.sh - Takes a list of config fragment values, and merges
# them one by one. Provides warnings on overridden values, and specified # them one by one. Provides warnings on overridden values, and specified
# values that did not make it to the resulting .config file (due to missed # values that did not make it to the resulting .config file (due to missed
@ -10,15 +12,6 @@
# #
# Copyright (c) 2009-2010 Wind River Systems, Inc. # Copyright (c) 2009-2010 Wind River Systems, Inc.
# Copyright 2011 Linaro # Copyright 2011 Linaro
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
clean_up() { clean_up() {
rm -f $TMP_FILE rm -f $TMP_FILE

View File

@ -1,9 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com? * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com>
* Released under the terms of the GNU GPL v2.0.
* *
* Derived from menuconfig. * Derived from menuconfig.
*
*/ */
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE

View File

@ -1,9 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com? * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com>
* Released under the terms of the GNU GPL v2.0.
* *
* Derived from menuconfig. * Derived from menuconfig.
*
*/ */
#include "nconf.h" #include "nconf.h"
#include "lkc.h" #include "lkc.h"

View File

@ -1,9 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0 */
/* /*
* Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com? * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com>
* Released under the terms of the GNU GPL v2.0.
* *
* Derived from menuconfig. * Derived from menuconfig.
*
*/ */
#include <ctype.h> #include <ctype.h>

View File

@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Copyright (C) 2015 Boris Barbulovski <bbarbulovski@gmail.com> * Copyright (C) 2015 Boris Barbulovski <bbarbulovski@gmail.com>
* Released under the terms of the GNU GPL v2.0.
*/ */
#include <qglobal.h> #include <qglobal.h>

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0 */
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
#include <QTextBrowser> #include <QTextBrowser>

View File

@ -1,7 +1,7 @@
#!/usr/bin/env perl #!/usr/bin/env perl
# SPDX-License-Identifier: GPL-2.0
# #
# Copyright 2005-2009 - Steven Rostedt # Copyright 2005-2009 - Steven Rostedt
# Licensed under the terms of the GNU GPL License version 2
# #
# It's simple enough to figure out how this works. # It's simple enough to figure out how this works.
# If not, then you can ask me at stripconfig@goodmis.org # If not, then you can ask me at stripconfig@goodmis.org

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
#include <ctype.h> #include <ctype.h>

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
config A config A
bool "A" bool "A"
default y default y

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
""" """
Create submenu for symbols that depend on the preceding one. Create submenu for symbols that depend on the preceding one.

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
config MODULES config MODULES
bool "Enable loadable module support" bool "Enable loadable module support"
option modules option modules

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
""" """
Basic choice tests. Basic choice tests.

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
config MODULES config MODULES
def_bool y def_bool y
option modules option modules

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
""" """
Hide tristate choice values with mod dependency in y choice. Hide tristate choice values with mod dependency in y choice.

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
""" """
Detect recursive inclusion error. Detect recursive inclusion error.

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
config MODULES config MODULES
def_bool y def_bool y
option modules option modules

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
""" """
Do not affect user-assigned choice value by another choice. Do not affect user-assigned choice value by another choice.

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
config A config A
bool "A" bool "A"
help help

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
""" """
Ask new choice values when they become visible. Ask new choice values when they become visible.

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
config A config A
bool "A" bool "A"

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
""" """
Do not write choice values to .config if the dependency is unmet. Do not write choice values to .config if the dependency is unmet.

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
choice choice
prompt "choice" prompt "choice"

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
""" """
Set random values recursively in nested choices. Set random values recursively in nested choices.

View File

@ -1,8 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2002-2005 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002-2005 Roman Zippel <zippel@linux-m68k.org>
* Copyright (C) 2002-2005 Sam Ravnborg <sam@ravnborg.org> * Copyright (C) 2002-2005 Sam Ravnborg <sam@ravnborg.org>
*
* Released under the terms of the GNU GPL v2.0.
*/ */
#include <stdarg.h> #include <stdarg.h>

View File

@ -1,11 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
*/
%option nostdinit noyywrap never-interactive full ecs %option nostdinit noyywrap never-interactive full ecs
%option 8bit nodefault yylineno %option 8bit nodefault yylineno
%x ASSIGN_VAL HELP STRING %x ASSIGN_VAL HELP STRING
%{ %{
/*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/
#include <assert.h> #include <assert.h>
#include <limits.h> #include <limits.h>

View File

@ -1,8 +1,8 @@
%{ /* SPDX-License-Identifier: GPL-2.0 */
/* /*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/ */
%{
#include <ctype.h> #include <ctype.h>
#include <stdarg.h> #include <stdarg.h>