diff options
Diffstat (limited to 'poky/meta/classes-recipe/image-combined-dbg.bbclass')
-rw-r--r-- | poky/meta/classes-recipe/image-combined-dbg.bbclass | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/poky/meta/classes-recipe/image-combined-dbg.bbclass b/poky/meta/classes-recipe/image-combined-dbg.bbclass new file mode 100644 index 0000000000..dcf1968538 --- /dev/null +++ b/poky/meta/classes-recipe/image-combined-dbg.bbclass @@ -0,0 +1,15 @@ +# +# Copyright OpenEmbedded Contributors +# +# SPDX-License-Identifier: MIT +# + +IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image; " + +combine_dbg_image () { + if [ "${IMAGE_GEN_DEBUGFS}" = "1" -a -e ${IMAGE_ROOTFS}-dbg ]; then + # copy target files into -dbg rootfs, so it can be used for + # debug purposes directly + tar -C ${IMAGE_ROOTFS} -cf - . | tar -C ${IMAGE_ROOTFS}-dbg -xf - + fi +} |