image-combined-dbg.bbclass 413 B

12345678910111213
  1. #
  2. # Copyright OpenEmbedded Contributors
  3. #
  4. IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image; "
  5. combine_dbg_image () {
  6. if [ "${IMAGE_GEN_DEBUGFS}" = "1" -a -e ${IMAGE_ROOTFS}-dbg ]; then
  7. # copy target files into -dbg rootfs, so it can be used for
  8. # debug purposes directly
  9. tar -C ${IMAGE_ROOTFS} -cf - . | tar -C ${IMAGE_ROOTFS}-dbg -xf -
  10. fi
  11. }