summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2014-03-17 15:04:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-21 12:05:31 +0000
commitff52c5ba15433f2b1e9723bf845e39da918ad59b (patch)
tree547d8dc8fde36ef83a99ceaa32703b80fcf9df6a
parenta4dd6dfccee0be50d3addce3dd1bf903e051ad5a (diff)
downloadopenembedded-core-ff52c5ba15433f2b1e9723bf845e39da918ad59b.tar.gz
openembedded-core-ff52c5ba15433f2b1e9723bf845e39da918ad59b.tar.bz2
openembedded-core-ff52c5ba15433f2b1e9723bf845e39da918ad59b.zip
toaster.bbclass: read the data needed for license manifest path
The license.manifest file is located in DEPLOY_DIR_IMAGE/licenses/ IMAGE_NAME dir. The data needed is collected after rootfs task. [YOCTO #5649] Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/toaster.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index eed30d4b23..705eb26b30 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -281,6 +281,17 @@ python toaster_buildhistory_dump() {
}
+# dump information related to license manifest path
+
+python toaster_licensemanifest_dump() {
+ deploy_dir_image = d.getVar('DEPLOY_DIR_IMAGE', True);
+ image_name = d.getVar('IMAGE_NAME', True);
+
+ data = { 'deploy_dir_image' : deploy_dir_image, 'image_name' : image_name }
+
+ bb.event.fire(bb.event.MetadataEvent("LicenseManifestPath", data), d)
+}
+
# set event handlers
addhandler toaster_layerinfo_dumpdata
toaster_layerinfo_dumpdata[eventmask] = "bb.event.TreeDataPreparationCompleted"
@@ -293,3 +304,4 @@ toaster_buildhistory_dump[eventmask] = "bb.event.BuildCompleted"
do_package[postfuncs] += "toaster_package_dumpdata "
do_rootfs[postfuncs] += "toaster_image_dumpdata "
+do_rootfs[postfuncs] += "toaster_licensemanifest_dump "