blob: 729313739c1ee6b72e88564b4ace1c181528ed25 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
Andrew Geissler5082cc72023-09-11 08:41:39 -04007IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image"
Patrick Williams92b42cb2022-09-03 06:53:57 -05008
9combine_dbg_image () {
10 if [ "${IMAGE_GEN_DEBUGFS}" = "1" -a -e ${IMAGE_ROOTFS}-dbg ]; then
11 # copy target files into -dbg rootfs, so it can be used for
12 # debug purposes directly
13 tar -C ${IMAGE_ROOTFS} -cf - . | tar -C ${IMAGE_ROOTFS}-dbg -xf -
14 fi
15}