diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-04-26 19:20:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-06 10:31:16 +0100 |
commit | d38c92376c2fb8ccb9074e654043351c7251c646 (patch) | |
tree | ce0cdb5042fd838915a4d263240793fb4ed61a77 /meta | |
parent | a8b35766d4f6c4af7dcccf94e7b48b872144fc26 (diff) | |
download | poky-d38c92376c2fb8ccb9074e654043351c7251c646.tar.gz |
packagegroup.bbclass: set LICENSE and LIC_FILES_CHKSUM
* Use "??=" in bitbake.conf to set LICENSE, so that it can overrided by
packagegroup.bbclass and recipes.
* Use "?=" to set LICENSE and LIC_FILES_CHKSUM to MIT by default
in packagegroup.bbclass, this won't impact any packagegroup recipes
which use non-MIT license, since they can be overrided by the recipe.
(From OE-Core rev: a4aa5d9f4adb41f3f3bf3cea62f3e69204ca0b73)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/packagegroup.bbclass | 5 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass index 38bdbd3822..3674894e7f 100644 --- a/meta/classes/packagegroup.bbclass +++ b/meta/classes/packagegroup.bbclass | |||
@@ -14,6 +14,11 @@ PACKAGE_ARCH ?= "all" | |||
14 | # Fully expanded - so it applies the overrides as well | 14 | # Fully expanded - so it applies the overrides as well |
15 | PACKAGE_ARCH_EXPANDED := "${PACKAGE_ARCH}" | 15 | PACKAGE_ARCH_EXPANDED := "${PACKAGE_ARCH}" |
16 | 16 | ||
17 | LICENSE ?= "MIT" | ||
18 | LIC_FILES_CHKSUM ?= "${@oe.utils.ifelse(d.getVar('LICENSE', True) == 'MIT', \ | ||
19 | 'file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420', \ | ||
20 | '')}" | ||
21 | |||
17 | inherit ${@oe.utils.ifelse(d.getVar('PACKAGE_ARCH_EXPANDED', True) == 'all', 'allarch', '')} | 22 | inherit ${@oe.utils.ifelse(d.getVar('PACKAGE_ARCH_EXPANDED', True) == 'all', 'allarch', '')} |
18 | 23 | ||
19 | # This automatically adds -dbg and -dev flavours of all PACKAGES | 24 | # This automatically adds -dbg and -dev flavours of all PACKAGES |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 40796aab14..66646c82fb 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -247,7 +247,7 @@ SUMMARY_${PN}-doc ?= "${SUMMARY} - Documentation files" | |||
247 | DESCRIPTION_${PN}-doc ?= "${DESCRIPTION} \ | 247 | DESCRIPTION_${PN}-doc ?= "${DESCRIPTION} \ |
248 | This package contains documentation." | 248 | This package contains documentation." |
249 | 249 | ||
250 | LICENSE = "INVALID" | 250 | LICENSE ??= "INVALID" |
251 | MAINTAINER = "OE-Core Developers <openembedded-core@lists.openembedded.org>" | 251 | MAINTAINER = "OE-Core Developers <openembedded-core@lists.openembedded.org>" |
252 | HOMEPAGE = "" | 252 | HOMEPAGE = "" |
253 | 253 | ||