mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ea8640ee0d
commit
4ce36a45e2
@@ -296,6 +296,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
|
# set event handlers
|
||||||
addhandler toaster_layerinfo_dumpdata
|
addhandler toaster_layerinfo_dumpdata
|
||||||
toaster_layerinfo_dumpdata[eventmask] = "bb.event.TreeDataPreparationCompleted"
|
toaster_layerinfo_dumpdata[eventmask] = "bb.event.TreeDataPreparationCompleted"
|
||||||
@@ -308,3 +319,4 @@ toaster_buildhistory_dump[eventmask] = "bb.event.BuildCompleted"
|
|||||||
do_package[postfuncs] += "toaster_package_dumpdata "
|
do_package[postfuncs] += "toaster_package_dumpdata "
|
||||||
|
|
||||||
do_rootfs[postfuncs] += "toaster_image_dumpdata "
|
do_rootfs[postfuncs] += "toaster_image_dumpdata "
|
||||||
|
do_rootfs[postfuncs] += "toaster_licensemanifest_dump "
|
||||||
|
|||||||
Reference in New Issue
Block a user