xref: /OK3568_Linux_fs/yocto/poky/meta/classes/image-combined-dbg.bbclass (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image; "
2
3combine_dbg_image () {
4        if [ "${IMAGE_GEN_DEBUGFS}" = "1" -a -e ${IMAGE_ROOTFS}-dbg ]; then
5                # copy target files into -dbg rootfs, so it can be used for
6                # debug purposes directly
7                tar -C ${IMAGE_ROOTFS} -cf - . | tar -C ${IMAGE_ROOTFS}-dbg -xf -
8        fi
9}
10