diff options
-rw-r--r-- | meta/classes/image_types.bbclass | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 35ceb7beaf..8547574a1d 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -71,7 +71,19 @@ IMAGE_CMD_btrfs () { | |||
71 | IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend" | 71 | IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend" |
72 | IMAGE_CMD_squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-xz ${EXTRA_IMAGECMD} -noappend -comp xz" | 72 | IMAGE_CMD_squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-xz ${EXTRA_IMAGECMD} -noappend -comp xz" |
73 | IMAGE_CMD_squashfs-lzo = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzo ${EXTRA_IMAGECMD} -noappend -comp lzo" | 73 | IMAGE_CMD_squashfs-lzo = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzo ${EXTRA_IMAGECMD} -noappend -comp lzo" |
74 | IMAGE_CMD_tar = "tar -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar -C ${IMAGE_ROOTFS} ." | 74 | |
75 | # By default, tar from the host is used, which can be quite old. If | ||
76 | # you need special parameters (like --xattrs) which are only supported | ||
77 | # by GNU tar upstream >= 1.27, then override that default: | ||
78 | # IMAGE_CMD_TAR = "tar --xattrs --xattrs-include=*" | ||
79 | # IMAGE_DEPENDS_tar_append = " tar-replacement-native" | ||
80 | # EXTRANATIVEPATH += "tar-native" | ||
81 | # | ||
82 | # The GNU documentation does not specify whether --xattrs-include is necessary. | ||
83 | # In practice, it turned out to be not needed when creating archives and | ||
84 | # required when extracting, but it seems prudent to use it in both cases. | ||
85 | IMAGE_CMD_TAR ?= "tar" | ||
86 | IMAGE_CMD_tar = "${IMAGE_CMD_TAR} -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar -C ${IMAGE_ROOTFS} ." | ||
75 | 87 | ||
76 | do_rootfs[cleandirs] += "${WORKDIR}/cpio_append" | 88 | do_rootfs[cleandirs] += "${WORKDIR}/cpio_append" |
77 | IMAGE_CMD_cpio () { | 89 | IMAGE_CMD_cpio () { |