summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2013-04-18 16:51:51 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-12 17:00:31 +0000
commit02b61bf09dbbeb1a5f213dcad0c8c69660f372f5 (patch)
treef48e638b4429dd5f0e0b1f370054dafde97d542e /meta
parent8a70e3d87cdde27c0b3b98f980799d4825f611a4 (diff)
downloadpoky-02b61bf09dbbeb1a5f213dcad0c8c69660f372f5.tar.gz
package.bbclass: ensure license excluded files aren't packaged
An excluded package left its files behind, which meant they could end up in another package instead, meaning we could ship GPLv3 binaries even with GPLv3 in INCOMPATIBLE_LICENSE. Skip the files belonging to the excluded packages to prevent this from occurring. (From OE-Core master rev: c045bfe6b991006ac80f0e2d06a8917ae58d9262) (From OE-Core rev: f6bd8fcf07ddcac43e74bdcd1dfacd45b12a7df3) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 202b4ed1c9..80aaec21cb 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -925,7 +925,7 @@ python populate_packages () {
925 for pkg in packages.split(): 925 for pkg in packages.split():
926 if d.getVar('LICENSE_EXCLUSION-' + pkg, True): 926 if d.getVar('LICENSE_EXCLUSION-' + pkg, True):
927 bb.warn("%s has an incompatible license. Excluding from packaging." % pkg) 927 bb.warn("%s has an incompatible license. Excluding from packaging." % pkg)
928 elif pkg in package_list: 928 if pkg in package_list:
929 bb.error("%s is listed in PACKAGES multiple times, this leads to packaging errors." % pkg) 929 bb.error("%s is listed in PACKAGES multiple times, this leads to packaging errors." % pkg)
930 else: 930 else:
931 package_list.append(pkg) 931 package_list.append(pkg)
@@ -965,6 +965,9 @@ python populate_packages () {
965 continue 965 continue
966 seen.append(file) 966 seen.append(file)
967 967
968 if d.getVar('LICENSE_EXCLUSION-' + pkg, True):
969 continue
970
968 def mkdir(src, dest, p): 971 def mkdir(src, dest, p):
969 src = os.path.join(src, p) 972 src = os.path.join(src, p)
970 dest = os.path.join(dest, p) 973 dest = os.path.join(dest, p)