[oe-commits] Cristiana Voicu : toaster.bbclass: read the data needed for license manifest path

git at git.openembedded.org git at git.openembedded.org
Fri Mar 21 11:58:40 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: ff52c5ba15433f2b1e9723bf845e39da918ad59b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=ff52c5ba15433f2b1e9723bf845e39da918ad59b

Author: Cristiana Voicu <cristiana.voicu at intel.com>
Date:   Mon Mar 17 15:04:08 2014 +0000

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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/toaster.bbclass | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index eed30d4..705eb26 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 "



More information about the Openembedded-commits mailing list