Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 1 | IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image; " |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 2 | |
3 | combine_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 | } |