]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass/poky.conf: Fix INCOMPATIBLE_LICENSE Whitelist checking
authorSaul Wold <Saul.Wold@intel.com>
Thu, 7 Oct 2010 21:39:05 +0000 (14:39 -0700)
committerSaul Wold <sgw@linux.intel.com>
Mon, 15 Nov 2010 00:50:18 +0000 (16:50 -0800)
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
meta/classes/base.bbclass
meta/conf/distro/poky.conf

index 380a53b4accd04e1758e01365ecc5166c89ea688..384e723cf57dc5d4f8715ac12aacbdda902a9a0b 100644 (file)
@@ -494,10 +494,11 @@ python () {
 
         dont_want_license = bb.data.getVar('INCOMPATIBLE_LICENSE', d, 1)
         if dont_want_license and not pn.endswith("-native") and not pn.endswith("-cross") and not pn.endswith("-cross-initial") and not pn.endswith("-cross-intermediate"):
-            gplv3_hosttools_whitelist = (bb.data.getVar("GPLv3_HOSTTOOLS_WHITELIST", d, 1) or "").split()
-            gplv3_lgplv2_whitelist = (bb.data.getVar("GPLv3_LGPLv2_WHITELIST", d, 1) or "").split()
-            gplv3_whitelist = (bb.data.getVar("GPLv3_WHITELIST", d, 1) or "").split()
-            if pn not in gplv3_hosttools_whitelist and pn not in gplv3_lgplv2_whitelist and pn not in gplv3_whitelist:
+            hosttools_whitelist = (bb.data.getVar('HOSTTOOLS_WHITELIST_%s' % dont_want_license, d, 1) or "").split()
+            lgplv2_whitelist = (bb.data.getVar('LGPLv2_WHITELIST_%s' % dont_want_license, d, 1) or "").split()
+            dont_want_whitelist = (bb.data.getVar('WHITELIST_%s' % dont_want_license, d, 1) or "").split()
+            if pn not in hosttools_whitelist and pn not in lgplv2_whitelist and pn not in dont_want_whitelist:
+
                 import re
                 this_license = bb.data.getVar('LICENSE', d, 1)
                 if this_license and re.search(dont_want_license, this_license):
index 8cc734e8a01500c5d7ccd545e4c2fd5ca96a0176..b3c9f1aea3d25bb28a7d60450640c8caf3948ef6 100644 (file)
@@ -122,9 +122,9 @@ EXTRAOPKGCONFIG = "poky-feed-config-opkg"
 
 # This is a list of packages that are used by poky to build the distribution, they are not
 # directly part of the distribution. 
-GPLv3_HOSTTOOLS_WHITELIST = ""
-GPLv3_WHITELIST = "less gnome-common"
-GPLv3_LGPLv2_WHITELIST = "libassuan gnutls libtasn1 libidn" 
+HOSTTOOLS_WHITELIST_GPLv3 = ""
+WHITELIST_GPLv3 = "less gnome-common"
+LGPLv2_WHITELIST_GPLv3 = "libassuan gnutls libtasn1 libidn" 
 
 # This is a list of packages that require a commercial license to ship
 # product. If shipped as part of an image these packages may have