summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index e67bb5bd97..114d6559f5 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -2252,14 +2252,18 @@ python do_package_setscene () {
2252} 2252}
2253addtask do_package_setscene 2253addtask do_package_setscene
2254 2254
2255do_packagedata () { 2255# Copy from PKGDESTWORK to tempdirectory as tempdirectory can be cleaned at both
2256 : 2256# do_package_setscene and do_packagedata_setscene leading to races
2257python do_packagedata () {
2258 src = d.expand("${PKGDESTWORK}")
2259 dest = d.expand("${WORKDIR}/pkgdata-pdata-input")
2260 oe.path.copyhardlinktree(src, dest)
2257} 2261}
2258 2262
2259addtask packagedata before do_build after do_package 2263addtask packagedata before do_build after do_package
2260 2264
2261SSTATETASKS += "do_packagedata" 2265SSTATETASKS += "do_packagedata"
2262do_packagedata[sstate-inputdirs] = "${PKGDESTWORK}" 2266do_packagedata[sstate-inputdirs] = "${WORKDIR}/pkgdata-pdata-input"
2263do_packagedata[sstate-outputdirs] = "${PKGDATA_DIR}" 2267do_packagedata[sstate-outputdirs] = "${PKGDATA_DIR}"
2264do_packagedata[stamp-extra-info] = "${MACHINE_ARCH}" 2268do_packagedata[stamp-extra-info] = "${MACHINE_ARCH}"
2265 2269