[OE-core] [PATCH] license.bbclass: do not process LICENSE_pn variables
Markus Lehtonen
markus.lehtonen at linux.intel.com
Fri May 27 06:26:10 UTC 2016
The loop iterating over LICENSE_pn variables has never worked. In
addition, the LICENSE variable is supposed to contain all licenses
defined in LICENSE_pn variables. Thus, it is simpler just to use LICENSE
as the data we get is essentially the same.
[YOCTO #9499]
Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
---
meta/classes/license.bbclass | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 69335d6..eacf9e8 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -376,20 +376,6 @@ def find_license_files(d):
import shutil
import oe.license
- pn = d.getVar('PN', True)
- for package in d.getVar('PACKAGES', True):
- if d.getVar('LICENSE_' + package, True):
- license_types = license_types + ' & ' + \
- d.getVar('LICENSE_' + package, True)
-
- #If we get here with no license types, then that means we have a recipe
- #level license. If so, we grab only those.
- try:
- license_types
- except NameError:
- # All the license types at the recipe level
- license_types = d.getVar('LICENSE', True)
-
# All the license files for the package
lic_files = d.getVar('LIC_FILES_CHKSUM', True)
pn = d.getVar('PN', True)
@@ -487,7 +473,7 @@ def find_license_files(d):
v = FindVisitor()
try:
- v.visit_string(license_types)
+ v.visit_string(d.getVar('LICENSE', True))
except oe.license.InvalidLicense as exc:
bb.fatal('%s: %s' % (d.getVar('PF', True), exc))
except SyntaxError:
--
2.6.6
More information about the Openembedded-core
mailing list