summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/toaster.bbclass15
1 files changed, 11 insertions, 4 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index 6cef0b8f6e..6a65ecb957 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -113,7 +113,7 @@ def _toaster_load_pkgdatafile(dirpath, filepath):
113 pass # ignore lines without valid key: value pairs 113 pass # ignore lines without valid key: value pairs
114 return pkgdata 114 return pkgdata
115 115
116python toaster_package_dumpdata() { 116def _toaster_dumpdata(pkgdatadir, d):
117 """ 117 """
118 Dumps the data about the packages created by a recipe 118 Dumps the data about the packages created by a recipe
119 """ 119 """
@@ -122,7 +122,6 @@ python toaster_package_dumpdata() {
122 if not d.getVar('PACKAGES'): 122 if not d.getVar('PACKAGES'):
123 return 123 return
124 124
125 pkgdatadir = d.getVar('PKGDESTWORK')
126 lpkgdata = {} 125 lpkgdata = {}
127 datadir = os.path.join(pkgdatadir, 'runtime') 126 datadir = os.path.join(pkgdatadir, 'runtime')
128 127
@@ -132,6 +131,14 @@ python toaster_package_dumpdata() {
132 lpkgdata = _toaster_load_pkgdatafile(datadir, datafile) 131 lpkgdata = _toaster_load_pkgdatafile(datadir, datafile)
133 # Fire an event containing the pkg data 132 # Fire an event containing the pkg data
134 bb.event.fire(bb.event.MetadataEvent("SinglePackageInfo", lpkgdata), d) 133 bb.event.fire(bb.event.MetadataEvent("SinglePackageInfo", lpkgdata), d)
134
135python toaster_package_dumpdata() {
136 _toaster_dumpdata(d.getVar('PKGDESTWORK'), d)
137}
138
139python toaster_packagedata_dumpdata() {
140 # This path needs to match do_packagedata[sstate-inputdirs]
141 _toaster_dumpdata(os.path.join(d.getVar('WORKDIR'), 'pkgdata-pdata-input'), d)
135} 142}
136 143
137# 2. Dump output image files information 144# 2. Dump output image files information
@@ -366,8 +373,8 @@ toaster_buildhistory_dump[eventmask] = "bb.event.BuildCompleted"
366addhandler toaster_artifacts 373addhandler toaster_artifacts
367toaster_artifacts[eventmask] = "bb.runqueue.runQueueTaskSkipped bb.runqueue.runQueueTaskCompleted" 374toaster_artifacts[eventmask] = "bb.runqueue.runQueueTaskSkipped bb.runqueue.runQueueTaskCompleted"
368 375
369do_packagedata_setscene[postfuncs] += "toaster_package_dumpdata " 376do_packagedata_setscene[postfuncs] += "toaster_packagedata_dumpdata "
370do_packagedata_setscene[vardepsexclude] += "toaster_package_dumpdata " 377do_packagedata_setscene[vardepsexclude] += "toaster_packagedata_dumpdata "
371 378
372do_package[postfuncs] += "toaster_package_dumpdata " 379do_package[postfuncs] += "toaster_package_dumpdata "
373do_package[vardepsexclude] += "toaster_package_dumpdata " 380do_package[vardepsexclude] += "toaster_package_dumpdata "