summaryrefslogtreecommitdiffstats
path: root/meta/classes/license.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r--meta/classes/license.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index d4ebb26d2b..170bdd9476 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -7,6 +7,7 @@ LICENSE_DIRECTORY ??= "${DEPLOY_DIR}/licenses"
7LICSSTATEDIR = "${WORKDIR}/license-destdir/" 7LICSSTATEDIR = "${WORKDIR}/license-destdir/"
8 8
9# Create extra package with license texts and add it to RRECOMMENDS_${PN} 9# Create extra package with license texts and add it to RRECOMMENDS_${PN}
10LICENSE_CREATE_PACKAGE[type] = "boolean"
10LICENSE_CREATE_PACKAGE ??= "0" 11LICENSE_CREATE_PACKAGE ??= "0"
11LICENSE_PACKAGE_SUFFIX ??= "-lic" 12LICENSE_PACKAGE_SUFFIX ??= "-lic"
12LICENSE_FILES_DIRECTORY ??= "${datadir}/licenses/" 13LICENSE_FILES_DIRECTORY ??= "${datadir}/licenses/"
@@ -102,7 +103,7 @@ python do_populate_lic() {
102 103
103# it would be better to copy them in do_install_append, but find_license_filesa is python 104# it would be better to copy them in do_install_append, but find_license_filesa is python
104python perform_packagecopy_prepend () { 105python perform_packagecopy_prepend () {
105 enabled = d.getVar('LICENSE_CREATE_PACKAGE', True) 106 enabled = oe.data.typed_value('LICENSE_CREATE_PACKAGE', d)
106 if d.getVar('CLASSOVERRIDE', True) == 'class-target' and enabled: 107 if d.getVar('CLASSOVERRIDE', True) == 'class-target' and enabled:
107 lic_files_paths = find_license_files(d) 108 lic_files_paths = find_license_files(d)
108 109