diff options
author | Joe Slater <jslater@windriver.com> | 2014-12-16 14:55:20 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-19 18:08:00 +0000 |
commit | fc518325c64040e6bbd47cfb7f40f0fd363c17d2 (patch) | |
tree | 0b14da4a8e96465999ae555661624ccf62d8ba51 /meta/recipes-devtools | |
parent | 31e86e6b02bcd1f5abd376a4f9b5598464cbe994 (diff) | |
download | poky-fc518325c64040e6bbd47cfb7f40f0fd363c17d2.tar.gz |
gcc runtime: specify license on a per package basis
It can be alarming to attempt to exclude GPLv3 from an
image but find that libstdc++ and libgcc still show it.
We indicate the license for each package to show libraries
that really are just GCC-3.0-with-GCC-exception.
(From OE-Core rev: 5db535a91edea439c14e75726acd23e64bb1e2ea)
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-runtime.inc | 31 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/libgcc.inc | 7 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc index 0348bc4607..bc36b186a0 100644 --- a/meta/recipes-devtools/gcc/gcc-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc | |||
@@ -92,6 +92,37 @@ PACKAGES = "\ | |||
92 | libatomic-dev \ | 92 | libatomic-dev \ |
93 | libatomic-staticdev \ | 93 | libatomic-staticdev \ |
94 | " | 94 | " |
95 | |||
96 | # Most libraries are licensed with the exception, but | ||
97 | # one library is really GPLv3. | ||
98 | # | ||
99 | LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception & GPLv3" | ||
100 | LICENSE_libstdc++ = "GPL-3.0-with-GCC-exception" | ||
101 | LICENSE_libstdc++-precompile-dev = "GPL-3.0-with-GCC-exception" | ||
102 | LICENSE_libstdc++-dev = "GPL-3.0-with-GCC-exception" | ||
103 | LICENSE_libstdc++-staticdev = "GPL-3.0-with-GCC-exception" | ||
104 | LICENSE_libg2c = "GPL-3.0-with-GCC-exception" | ||
105 | LICENSE_libg2c-dev = "GPL-3.0-with-GCC-exception" | ||
106 | LICENSE_libssp = "GPL-3.0-with-GCC-exception" | ||
107 | LICENSE_libssp-dev = "GPL-3.0-with-GCC-exception" | ||
108 | LICENSE_libssp-staticdev = "GPL-3.0-with-GCC-exception" | ||
109 | LICENSE_libgfortran = "GPL-3.0-with-GCC-exception" | ||
110 | LICENSE_libgfortran-dev = "GPL-3.0-with-GCC-exception" | ||
111 | LICENSE_libgfortran-staticdev = "GPL-3.0-with-GCC-exception" | ||
112 | LICENSE_libmudflap = "GPL-3.0-with-GCC-exception" | ||
113 | LICENSE_libmudflap-dev = "GPL-3.0-with-GCC-exception" | ||
114 | LICENSE_libmudflap-staticdev = "GPL-3.0-with-GCC-exception" | ||
115 | LICENSE_libquadmath = "GPL-3.0-with-GCC-exception" | ||
116 | LICENSE_libquadmath-dev = "GPL-3.0-with-GCC-exception" | ||
117 | LICENSE_libquadmath-staticdev = "GPL-3.0-with-GCC-exception" | ||
118 | LICENSE_libatomic = "GPL-3.0-with-GCC-exception" | ||
119 | LICENSE_libatomic-dev = "GPL-3.0-with-GCC-exception" | ||
120 | LICENSE_libatomic-staticdev = "GPL-3.0-with-GCC-exception" | ||
121 | |||
122 | LICENSE_libgomp = "GPLv3" | ||
123 | LICENSE_libgomp-dev = "GPLv3" | ||
124 | LICENSE_libgomp-staticdev = "GPLv3" | ||
125 | |||
95 | # The base package doesn't exist, so we clear the recommends. | 126 | # The base package doesn't exist, so we clear the recommends. |
96 | RRECOMMENDS_${PN}-dbg = "" | 127 | RRECOMMENDS_${PN}-dbg = "" |
97 | 128 | ||
diff --git a/meta/recipes-devtools/gcc/libgcc.inc b/meta/recipes-devtools/gcc/libgcc.inc index 22c42d5eca..21cb8c1084 100644 --- a/meta/recipes-devtools/gcc/libgcc.inc +++ b/meta/recipes-devtools/gcc/libgcc.inc | |||
@@ -9,6 +9,13 @@ PACKAGES = "\ | |||
9 | libgcov-dev \ | 9 | libgcov-dev \ |
10 | " | 10 | " |
11 | 11 | ||
12 | # All libgcc source is marked with the exception. | ||
13 | # | ||
14 | LICENSE_${PN} = "GPL-3.0-with-GCC-exception" | ||
15 | LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception" | ||
16 | LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception" | ||
17 | |||
18 | |||
12 | FILES_${PN} = "${base_libdir}/libgcc*.so.*" | 19 | FILES_${PN} = "${base_libdir}/libgcc*.so.*" |
13 | FILES_${PN}-dev = "\ | 20 | FILES_${PN}-dev = "\ |
14 | ${base_libdir}/libgcc*.so \ | 21 | ${base_libdir}/libgcc*.so \ |