summaryrefslogtreecommitdiffstats
path: root/meta/classes/toaster.bbclass
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2014-03-17 15:04:08 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-21 12:05:53 (GMT)
commit4ce36a45e2cbd1571118fc6826190eaef01468ad (patch)
tree3a4310bee95ec52ef53dda1d8627ef8e085ef04a /meta/classes/toaster.bbclass
parentea8640ee0d99f183b32cd2ca42e4e7ec45be8a19 (diff)
downloadpoky-4ce36a45e2cbd1571118fc6826190eaef01468ad.tar.gz
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] (From OE-Core rev: ff52c5ba15433f2b1e9723bf845e39da918ad59b) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/toaster.bbclass')
-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 ddfceb5..563b1f7 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -296,6 +296,17 @@ python toaster_buildhistory_dump() {
296 296
297} 297}
298 298
299# dump information related to license manifest path
300
301python toaster_licensemanifest_dump() {
302 deploy_dir_image = d.getVar('DEPLOY_DIR_IMAGE', True);
303 image_name = d.getVar('IMAGE_NAME', True);
304
305 data = { 'deploy_dir_image' : deploy_dir_image, 'image_name' : image_name }
306
307 bb.event.fire(bb.event.MetadataEvent("LicenseManifestPath", data), d)
308}
309
299# set event handlers 310# set event handlers
300addhandler toaster_layerinfo_dumpdata 311addhandler toaster_layerinfo_dumpdata
301toaster_layerinfo_dumpdata[eventmask] = "bb.event.TreeDataPreparationCompleted" 312toaster_layerinfo_dumpdata[eventmask] = "bb.event.TreeDataPreparationCompleted"
@@ -308,3 +319,4 @@ toaster_buildhistory_dump[eventmask] = "bb.event.BuildCompleted"
308do_package[postfuncs] += "toaster_package_dumpdata " 319do_package[postfuncs] += "toaster_package_dumpdata "
309 320
310do_rootfs[postfuncs] += "toaster_image_dumpdata " 321do_rootfs[postfuncs] += "toaster_image_dumpdata "
322do_rootfs[postfuncs] += "toaster_licensemanifest_dump "