summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/image-combined-dbg.bbclass
blob: 729313739c1ee6b72e88564b4ace1c181528ed25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}