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