summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/base.bbclass9
-rw-r--r--meta/conf/distro/poky.conf6
2 files changed, 8 insertions, 7 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 380a53b4ac..384e723cf5 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -494,10 +494,11 @@ python () {
494 494
495 dont_want_license = bb.data.getVar('INCOMPATIBLE_LICENSE', d, 1) 495 dont_want_license = bb.data.getVar('INCOMPATIBLE_LICENSE', d, 1)
496 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"): 496 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"):
497 gplv3_hosttools_whitelist = (bb.data.getVar("GPLv3_HOSTTOOLS_WHITELIST", d, 1) or "").split() 497 hosttools_whitelist = (bb.data.getVar('HOSTTOOLS_WHITELIST_%s' % dont_want_license, d, 1) or "").split()
498 gplv3_lgplv2_whitelist = (bb.data.getVar("GPLv3_LGPLv2_WHITELIST", d, 1) or "").split() 498 lgplv2_whitelist = (bb.data.getVar('LGPLv2_WHITELIST_%s' % dont_want_license, d, 1) or "").split()
499 gplv3_whitelist = (bb.data.getVar("GPLv3_WHITELIST", d, 1) or "").split() 499 dont_want_whitelist = (bb.data.getVar('WHITELIST_%s' % dont_want_license, d, 1) or "").split()
500 if pn not in gplv3_hosttools_whitelist and pn not in gplv3_lgplv2_whitelist and pn not in gplv3_whitelist: 500 if pn not in hosttools_whitelist and pn not in lgplv2_whitelist and pn not in dont_want_whitelist:
501
501 import re 502 import re
502 this_license = bb.data.getVar('LICENSE', d, 1) 503 this_license = bb.data.getVar('LICENSE', d, 1)
503 if this_license and re.search(dont_want_license, this_license): 504 if this_license and re.search(dont_want_license, this_license):
diff --git a/meta/conf/distro/poky.conf b/meta/conf/distro/poky.conf
index 8cc734e8a0..b3c9f1aea3 100644
--- a/meta/conf/distro/poky.conf
+++ b/meta/conf/distro/poky.conf
@@ -122,9 +122,9 @@ EXTRAOPKGCONFIG = "poky-feed-config-opkg"
122 122
123# This is a list of packages that are used by poky to build the distribution, they are not 123# This is a list of packages that are used by poky to build the distribution, they are not
124# directly part of the distribution. 124# directly part of the distribution.
125GPLv3_HOSTTOOLS_WHITELIST = "" 125HOSTTOOLS_WHITELIST_GPLv3 = ""
126GPLv3_WHITELIST = "less gnome-common" 126WHITELIST_GPLv3 = "less gnome-common"
127GPLv3_LGPLv2_WHITELIST = "libassuan gnutls libtasn1 libidn" 127LGPLv2_WHITELIST_GPLv3 = "libassuan gnutls libtasn1 libidn"
128 128
129# This is a list of packages that require a commercial license to ship 129# This is a list of packages that require a commercial license to ship
130# product. If shipped as part of an image these packages may have 130# product. If shipped as part of an image these packages may have