diff options
-rw-r--r-- | meta/classes/base.bbclass | 6 | ||||
-rw-r--r-- | meta/conf/distro/poky.conf | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 9ab8204dbc..3c3c779dba 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -466,6 +466,12 @@ python () { | |||
466 | if license == "INVALID": | 466 | if license == "INVALID": |
467 | bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) | 467 | bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) |
468 | 468 | ||
469 | commercial_license = bb.data.getVar('COMMERCIAL_LICENSE', d, 1) | ||
470 | import re | ||
471 | if commercial_license and re.search(pn, commercial_license): | ||
472 | bb.note("SKIPPING %s because it's Commerciallly Licensed" % pn) | ||
473 | raise bb.parse.SkipPackage("because it requires commercial license to ship product") | ||
474 | |||
469 | # If we're building a target package we need to use fakeroot (pseudo) | 475 | # If we're building a target package we need to use fakeroot (pseudo) |
470 | # in order to capture permissions, owners, groups and special files | 476 | # in order to capture permissions, owners, groups and special files |
471 | if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): | 477 | if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): |
diff --git a/meta/conf/distro/poky.conf b/meta/conf/distro/poky.conf index 6db45cb01d..89d1b5acb6 100644 --- a/meta/conf/distro/poky.conf +++ b/meta/conf/distro/poky.conf | |||
@@ -123,6 +123,11 @@ GPLv3_HOSTTOOLS_WHITELIST = "" | |||
123 | GPLv3_WHITELIST = "less gnome-common" | 123 | GPLv3_WHITELIST = "less gnome-common" |
124 | GPLv3_LGPLv2_WHITELIST = "libassuan gnutls libtasn1 libidn" | 124 | GPLv3_LGPLv2_WHITELIST = "libassuan gnutls libtasn1 libidn" |
125 | 125 | ||
126 | # This is a list of packages that require a commercial license to ship | ||
127 | # product. If shipped as part of an image these packages may have | ||
128 | # implications so they are disabled by default | ||
129 | COMMERCIAL_LICENSE = "lame gst-fluendo-mp3 libmad mpeg2dec ffmpeg qmmp" | ||
130 | |||
126 | require conf/distro/include/world-broken.inc | 131 | require conf/distro/include/world-broken.inc |
127 | require conf/distro/include/distro_tracking_fields.inc | 132 | require conf/distro/include/distro_tracking_fields.inc |
128 | 133 | ||