aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/compiler.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2015-02-26 15:58:42 +0000
committerMichael Brown <mcb30@ipxe.org>2015-03-02 12:07:14 +0000
commit2782ccec412222cebafa35899328944acc643caa (patch)
tree932eb55354aa85640f6238e4ca6209e94cf1ac60 /src/include/compiler.h
parent7aa689e3badf8c7c278b725d4fe1273399d52405 (diff)
downloadipxe-2782ccec412222cebafa35899328944acc643caa.tar.gz
[legal] Add support for the Unmodified Binary Distribution Licence
Add the text for the Unmodified Binary Distribution Licence. This Licence allows for the distribution of unmodified binaries built from publicly available source code, without imposing the obligations of the GNU General Public License upon anyone who chooses to distribute only the unmodified binaries built from that source code. See the licence text for the precise terms and conditions. Add the licence GPL2_OR_LATER_OR_UBDL to the set of licences which can be declared using FILE_LICENCE(), and add the corresponding support to licence.pl. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r--src/include/compiler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h
index 3f5c913a0..611c5a23f 100644
--- a/src/include/compiler.h
+++ b/src/include/compiler.h
@@ -730,6 +730,17 @@ int __debug_disable;
#define FILE_LICENCE_MIT \
PROVIDE_SYMBOL ( PREFIX_OBJECT ( __licence__mit__ ) )
+/** Declare a file as being under GPLv2+ or UBDL
+ *
+ * This licence declaration is applicable when a file states itself to
+ * be licensed under the GNU GPL; "either version 2 of the License, or
+ * (at your option) any later version" and also states that it may be
+ * distributed under the terms of the Unmodified Binary Distribution
+ * Licence (as given in the file COPYING.UBDL).
+ */
+#define FILE_LICENCE_GPL2_OR_LATER_OR_UBDL \
+ PROVIDE_SYMBOL ( PREFIX_OBJECT ( __licence__gpl2_or_later_or_ubdl__ ) )
+
/** Declare a particular licence as applying to a file */
#define FILE_LICENCE( _licence ) FILE_LICENCE_ ## _licence