diff options
| -rw-r--r-- | meta/classes/image-combined-dbg.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/image-combined-dbg.bbclass b/meta/classes/image-combined-dbg.bbclass new file mode 100644 index 0000000000..f4772f7ea1 --- /dev/null +++ b/meta/classes/image-combined-dbg.bbclass | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | IMAGE_PREPROCESS_COMMAND_append = " combine_dbg_image; " | ||
| 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 | } | ||
