summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-05 14:16:28 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-19 20:06:25 +0100
commitc28973c16047f6668edaeba1bef6d81c4a353c78 (patch)
tree2076bd693bc4b141eecb6c5c2a0dab87ad583a17 /meta
parent0769e847cbefbbf2f083b7fc585a0479db6b18a1 (diff)
downloadopenembedded-core-c28973c16047f6668edaeba1bef6d81c4a353c78.tar.gz
openembedded-core-c28973c16047f6668edaeba1bef6d81c4a353c78.tar.bz2
openembedded-core-c28973c16047f6668edaeba1bef6d81c4a353c78.zip
staging.bbclass: Convert to packaged-staging
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/staging.bbclass15
1 files changed, 10 insertions, 5 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index e66dc044af..e82db83892 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -100,13 +100,18 @@ python do_populate_sysroot () {
bb.build.exec_func("sysroot_stage_all", d)
for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split():
bb.build.exec_func(f, d)
- bb.build.exec_func("packagedstaging_fastpath", d)
+}
+
+SSTATETASKS += "do_populate_sysroot"
+do_populate_sysroot[sstate-name] = "populate-sysroot"
+do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR}"
+do_populate_sysroot[sstate-outputdirs] = "${TMPDIR}/sysroots"
- lockfile = bb.data.getVar("SYSROOT_LOCK", d, True)
- lock = bb.utils.lockfile(lockfile)
- os.system(bb.data.expand('cp -pPR ${SYSROOT_DESTDIR}${TMPDIR}/* ${TMPDIR}/', d))
- bb.utils.unlockfile(lock)
+python do_populate_sysroot_setscene () {
+ sstate_setscene(d)
}
+addtask do_populate_sysroot_setscene
+
python () {
if bb.data.getVar('do_stage', d, True) is not None: