]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/jailhouse.git/blob - LICENSING.md
README: Set link to jailhouse-images project
[processor-sdk/jailhouse.git] / LICENSING.md
1 Jailhouse Licensing
2 ===================
4 The Jailhouse hypervisor is primarily licensed under the terms of the GNU
5 General Public License version 2.
7 Each of its source code files contains a license declaration in its header.
8 Whenever a file is provided under an additional or different license than
9 GPLv2, this is stated in the file header. Any file that may lack such a
10 header has to be considered licensed under GPLv2 (default license).
12 If two licenses are specified in a file header, you are free to pick the one
13 that suits best your particular use case. You can also continue to use the
14 file under the dual license. When choosing only one, remove the reference to
15 the other from the file header.
18 License Usage
19 -------------
21 The default license GPLv2 shall be used unless valid reasons are provided for a
22 deviation. Note the additional statement in GPLv2.txt about which code is not
23 considered derivative work of Jailhouse before considering a different license.
25 For code that shall be licensed under more permissive terms, a dual-license
26 model of GPLv2 together with the BSD 2-clause license is preferred. This form
27 can be applicable on
29   - interfaces to code that runs inside Jailhouse cells
30   - library-like code that applications or operating systems can include to
31     run in a Jailhouse cell
32   - generated configuration files
35 License Header Format
36 ---------------------
38 Use the following template (replacing comment markers as required) when
39 creating a new file in the Jailhouse project:
41 ```
42 /*
43  * Jailhouse, a Linux-based partitioning hypervisor
44  *
45  * Copyright (c) <COPYRIGHT HOLDER>, <YEAR>
46  *
47  * Authors:
48  *  Your Name <your.email@host.dom>
49  *
50  * This work is licensed under the terms of the GNU GPL, version 2.  See
51  * the COPYING file in the top-level directory.
52  */
53 ```
55 When applying a dual GPL/BSD license, append the following to the above:
57 ```
58  ...
59  *
60  * Alternatively, you can use or redistribute this file under the following
61  * BSD license:
62  *
63  * Redistribution and use in source and binary forms, with or without
64  * modification, are permitted provided that the following conditions
65  * are met:
66  *
67  * 1. Redistributions of source code must retain the above copyright
68  *    notice, this list of conditions and the following disclaimer.
69  *
70  * 2. Redistributions in binary form must reproduce the above copyright
71  *    notice, this list of conditions and the following disclaimer in the
72  *    documentation and/or other materials provided with the distribution.
73  *
74  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
75  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
76  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
77  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
78  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
79  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
80  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
81  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
82  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
83  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
84  * THE POSSIBILITY OF SUCH DAMAGE.
85  */
86 ```