diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/package.bbclass | 10 |
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 | } |
2253 | addtask do_package_setscene | 2253 | addtask do_package_setscene |
2254 | 2254 | ||
2255 | do_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 |
2257 | python 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 | ||
2259 | addtask packagedata before do_build after do_package | 2263 | addtask packagedata before do_build after do_package |
2260 | 2264 | ||
2261 | SSTATETASKS += "do_packagedata" | 2265 | SSTATETASKS += "do_packagedata" |
2262 | do_packagedata[sstate-inputdirs] = "${PKGDESTWORK}" | 2266 | do_packagedata[sstate-inputdirs] = "${WORKDIR}/pkgdata-pdata-input" |
2263 | do_packagedata[sstate-outputdirs] = "${PKGDATA_DIR}" | 2267 | do_packagedata[sstate-outputdirs] = "${PKGDATA_DIR}" |
2264 | do_packagedata[stamp-extra-info] = "${MACHINE_ARCH}" | 2268 | do_packagedata[stamp-extra-info] = "${MACHINE_ARCH}" |
2265 | 2269 | ||