summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2022-03-12 12:53:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-13 12:23:48 +0000
commitbbc60671ade0bf84d934abb807cdce1f37f76804 (patch)
tree344a26c1a588cbfae423060142b3079357548082 /meta
parent10610aa80ebd07e1d239974bc2b407a7322164c2 (diff)
downloadpoky-bbc60671ade0bf84d934abb807cdce1f37f76804.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image.bbclass4
-rw-r--r--meta/lib/oe/rootfs.py4
2 files changed, 2 insertions, 6 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 2b0ce4a988..eb192057c2 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -252,8 +252,8 @@ fakeroot python do_rootfs () {
252 252
253 progress_reporter.finish() 253 progress_reporter.finish()
254} 254}
255do_rootfs[dirs] = "${TOPDIR}" 255do_rootfs[dirs] = "${IMAGE_ROOTFS} ${IMGDEPLOYDIR} ${TOPDIR}"
256do_rootfs[cleandirs] += "${S} ${IMGDEPLOYDIR}" 256do_rootfs[cleandirs] += "${IMAGE_ROOTFS} ${IMGDEPLOYDIR} ${S}"
257do_rootfs[file-checksums] += "${POSTINST_INTERCEPT_CHECKSUMS}" 257do_rootfs[file-checksums] += "${POSTINST_INTERCEPT_CHECKSUMS}"
258addtask rootfs after do_prepare_recipe_sysroot 258addtask rootfs after do_prepare_recipe_sysroot
259 259
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index b0dd625539..98cf3f244d 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -190,10 +190,6 @@ class Rootfs(object, metaclass=ABCMeta):
190 post_process_cmds = self.d.getVar("ROOTFS_POSTPROCESS_COMMAND") 190 post_process_cmds = self.d.getVar("ROOTFS_POSTPROCESS_COMMAND")
191 rootfs_post_install_cmds = self.d.getVar('ROOTFS_POSTINSTALL_COMMAND') 191 rootfs_post_install_cmds = self.d.getVar('ROOTFS_POSTINSTALL_COMMAND')
192 192
193 bb.utils.mkdirhier(self.image_rootfs)
194
195 bb.utils.mkdirhier(self.deploydir)
196
197 execute_pre_post_process(self.d, pre_process_cmds) 193 execute_pre_post_process(self.d, pre_process_cmds)
198 194
199 if self.progress_reporter: 195 if self.progress_reporter: