Skip to contentSkip to conversation

license.bbclass: postpone image license manifest creation until image postprocessing phase

PATCH New Markus Lehtonen 1 participant 2 messages Apr 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 license.bbclass: postpone image license manifest creation until image postprocessing phase

This is a proposed fix to yocto bug #9446. It should fix the reported issue although is was not able to reproduce the problem.

Markus Lehtonen (1):
license.bbclass: do write_deploy_manifest in image postprocessing

 meta/classes/license.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.6.6
#1 lore raw

PATCH 1/1 license.bbclass: do write_deploy_manifest in image postprocessing

Call write_deploy_manifest() in image postprocessing phase, instead of rootfs postprocessing. The reason being that not necessarily all do_deploy tasks are dependencies of the do_rootfs and we might miss something.

[YOCTO #9446]

---
 meta/classes/license.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/classes/license.bbclass +4 -1
index 94be559..43944e6 100644
@@ -650,9 +650,12 @@ SSTATETASKS += "do_populate_lic"
 do_populate_lic[sstate-inputdirs] = "${LICSSTATEDIR}"
 do_populate_lic[sstate-outputdirs] = "${LICENSE_DIRECTORY}/"
 
-ROOTFS_POSTPROCESS_COMMAND_prepend = "write_package_manifest; write_deploy_manifest; license_create_manifest; "
+ROOTFS_POSTPROCESS_COMMAND_prepend = "write_package_manifest; license_create_manifest; "
 do_rootfs[recrdeptask] += "do_populate_lic"
 
+IMAGE_POSTPROCESS_COMMAND_prepend = "write_deploy_manifest; "
+do_image[recrdeptask] += "do_populate_lic"
+
 do_populate_lic_setscene[dirs] = "${LICSSTATEDIR}/${PN}"
 do_populate_lic_setscene[cleandirs] = "${LICSSTATEDIR}"
 python do_populate_lic_setscene () {
Signature · 1 line
2.6.6