mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
image.bbclass: make sure do_rootfs run from a clean workspace
Add ${IMAGE_ROOTFS} and ${IMGDEPLOYDIR} to do_rootfs[dirs] and
do_rootfs[cleandirs], this ensures do_rootfs run from a clean
workspace, with this change, we can now remove two bb.utils.mkdirhier
lines from meta/lib/oe/rootfs.py.
(From OE-Core rev: cb8b6f7eee4e059bb311330c57068e11bc477366)
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -252,8 +252,8 @@ fakeroot python do_rootfs () {
|
|||||||
|
|
||||||
progress_reporter.finish()
|
progress_reporter.finish()
|
||||||
}
|
}
|
||||||
do_rootfs[dirs] = "${TOPDIR}"
|
do_rootfs[dirs] = "${IMAGE_ROOTFS} ${IMGDEPLOYDIR} ${TOPDIR}"
|
||||||
do_rootfs[cleandirs] += "${S} ${IMGDEPLOYDIR}"
|
do_rootfs[cleandirs] += "${IMAGE_ROOTFS} ${IMGDEPLOYDIR} ${S}"
|
||||||
do_rootfs[file-checksums] += "${POSTINST_INTERCEPT_CHECKSUMS}"
|
do_rootfs[file-checksums] += "${POSTINST_INTERCEPT_CHECKSUMS}"
|
||||||
addtask rootfs after do_prepare_recipe_sysroot
|
addtask rootfs after do_prepare_recipe_sysroot
|
||||||
|
|
||||||
|
|||||||
@@ -190,10 +190,6 @@ class Rootfs(object, metaclass=ABCMeta):
|
|||||||
post_process_cmds = self.d.getVar("ROOTFS_POSTPROCESS_COMMAND")
|
post_process_cmds = self.d.getVar("ROOTFS_POSTPROCESS_COMMAND")
|
||||||
rootfs_post_install_cmds = self.d.getVar('ROOTFS_POSTINSTALL_COMMAND')
|
rootfs_post_install_cmds = self.d.getVar('ROOTFS_POSTINSTALL_COMMAND')
|
||||||
|
|
||||||
bb.utils.mkdirhier(self.image_rootfs)
|
|
||||||
|
|
||||||
bb.utils.mkdirhier(self.deploydir)
|
|
||||||
|
|
||||||
execute_pre_post_process(self.d, pre_process_cmds)
|
execute_pre_post_process(self.d, pre_process_cmds)
|
||||||
|
|
||||||
if self.progress_reporter:
|
if self.progress_reporter:
|
||||||
|
|||||||
Reference in New Issue
Block a user