diff options
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r-- | meta/classes/license.bbclass | 3 |
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" | |||
7 | LICSSTATEDIR = "${WORKDIR}/license-destdir/" | 7 | LICSSTATEDIR = "${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} |
10 | LICENSE_CREATE_PACKAGE[type] = "boolean" | ||
10 | LICENSE_CREATE_PACKAGE ??= "0" | 11 | LICENSE_CREATE_PACKAGE ??= "0" |
11 | LICENSE_PACKAGE_SUFFIX ??= "-lic" | 12 | LICENSE_PACKAGE_SUFFIX ??= "-lic" |
12 | LICENSE_FILES_DIRECTORY ??= "${datadir}/licenses/" | 13 | LICENSE_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 |
104 | python perform_packagecopy_prepend () { | 105 | python 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 | ||