diff options
| -rw-r--r-- | meta/classes/staging.bbclass | 15 |
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 () { | |||
| 100 | bb.build.exec_func("sysroot_stage_all", d) | 100 | bb.build.exec_func("sysroot_stage_all", d) |
| 101 | for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split(): | 101 | for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split(): |
| 102 | bb.build.exec_func(f, d) | 102 | bb.build.exec_func(f, d) |
| 103 | bb.build.exec_func("packagedstaging_fastpath", d) | 103 | } |
| 104 | |||
| 105 | SSTATETASKS += "do_populate_sysroot" | ||
| 106 | do_populate_sysroot[sstate-name] = "populate-sysroot" | ||
| 107 | do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR}" | ||
| 108 | do_populate_sysroot[sstate-outputdirs] = "${TMPDIR}/sysroots" | ||
| 104 | 109 | ||
| 105 | lockfile = bb.data.getVar("SYSROOT_LOCK", d, True) | 110 | python do_populate_sysroot_setscene () { |
| 106 | lock = bb.utils.lockfile(lockfile) | 111 | sstate_setscene(d) |
| 107 | os.system(bb.data.expand('cp -pPR ${SYSROOT_DESTDIR}${TMPDIR}/* ${TMPDIR}/', d)) | ||
| 108 | bb.utils.unlockfile(lock) | ||
| 109 | } | 112 | } |
| 113 | addtask do_populate_sysroot_setscene | ||
| 114 | |||
| 110 | 115 | ||
| 111 | python () { | 116 | python () { |
| 112 | if bb.data.getVar('do_stage', d, True) is not None: | 117 | if bb.data.getVar('do_stage', d, True) is not None: |
