blob: a81daa214339d3134c0ffd3c05bd3ef97fb3d592 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001inherit deploy
2
3rootfs_monitor() {
4 find ${IMAGE_ROOTFS} -type f -size +50k -print0 | xargs -0 du -h | sort -nr > ${IMAGE_ROOTFS}/rootfs_monitor.txt
5}
6
7do_deploy () {
8 install -d ${DEPLOYDIR}
9 cp ${IMAGE_ROOTFS}/rootfs_monitor.txt ${DEPLOYDIR}
10}
11
12addtask deploy before do_mtdverity_for_rootfs after do_image_complete
13
14ROOTFS_POSTPROCESS_COMMAND += " rootfs_monitor;"
15
16