diff mbox series

[3/3] doc: add License chapter

Message ID 1515850339-29501-3-git-send-email-sbabic@denx.de
State Changes Requested
Headers show
Series None | expand

Commit Message

Stefano Babic Jan. 13, 2018, 1:32 p.m. UTC
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 doc/source/index.rst     |  1 +
 doc/source/licensing.rst | 61 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 doc/source/licensing.rst
diff mbox series

Patch

diff --git a/doc/source/index.rst b/doc/source/index.rst
index 5e6971b..e143fe1 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -16,6 +16,7 @@  Sources are hosted at https://github.com/sbabic/swupdate
    :maxdepth: 2
 
    overview.rst
+   licensing.rst
 
 ############################################
 SWUpdate Documentation
diff --git a/doc/source/licensing.rst b/doc/source/licensing.rst
new file mode 100644
index 0000000..d9d967a
--- /dev/null
+++ b/doc/source/licensing.rst
@@ -0,0 +1,61 @@ 
+=======
+License
+=======
+
+SWUpdate is Free Software.  It is copyrighted by Stefano Babic and
+many others who contributed code (see the actual source code and the
+git commit messages for details).  You can redistribute SWUpdate and/or
+modify it under the terms of version 2 of the GNU General Public
+License as published by the Free Software Foundation.  Most of it can
+also be distributed, at your option, under any later version of the
+GNU General Public License -- see individual files for exceptions.
+
+To make this easier, license headers in the source files will be
+replaced with a single line reference to Unique License Identifiers
+as defined by the Linux Foundation's SPDX project [1].  For example,
+in a source file the full "GPL v2.0 or later" header text will be
+replaced by a single line:
+
+::
+
+	SPDX-License-Identifier:	GPL-2.0+
+
+Ideally, the license terms of all files in the source tree should be
+defined by such License Identifiers; in no case a file can contain
+more than one such License Identifier list.
+
+If a "SPDX-License-Identifier:" line references more than one Unique
+License Identifier, then this means that the respective file can be
+used under the terms of either of these licenses, i. e. with
+
+::
+
+	SPDX-License-Identifier:	GPL-2.0+	BSD-3-Clause
+
+you can choose between GPL-2.0+ and BSD-3-Clause licensing.
+
+We use the SPDX_ Unique License Identifiers (SPDX-Identifiers_)
+
+.. _SPDX: http://spdx.org/
+.. _SPDX-Identifiers: http://spdx.org/licenses/
+
+.. table:: Licenses
+
+   +-------------------------------------------------+------------------+--------------+
+   | Full name                                       |  SPDX Identifier | OSI Approved |
+   +=================================================+==================+==============+
+   | GNU General Public License v2.0_ only           | GPL-2.0          |    Y         |
+   +-------------------------------------------------+------------------+--------------+
+   | GNU General Public License v2.0_ or later       | GPL-2.0+         |    Y         |
+   +-------------------------------------------------+------------------+--------------+
+   | GNU Lesser General Public License v2.1_ or later| LGPL-2.1+        |    Y         |
+   +-------------------------------------------------+------------------+--------------+
+   | BSD 2-Clause_ License                           | BSD-2-Clause     |    Y         |
+   +-------------------------------------------------+------------------+--------------+
+   | BSD 3-clause_ "New" or "Revised" License        | BSD-3-Clause     |    Y         |
+   +-------------------------------------------------+------------------+--------------+
+
+.. _v2.0: http://www.gnu.org/licenses/gpl-2.0.txt
+.. _v2.1: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
+.. _2-Clause: http://spdx.org/licenses/BSD-2-Clause
+.. _3-Clause: http://spdx.org/licenses/BSD-3-Clause#licenseText