image-combined-dbg.bbclass 444 B

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