mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
sdcard_image-rpi.bbclass: Remove SDIMG_COMPRESSION
Using SDIMG_COMPRESSION variable to choose compression type for produced images is deprecated. IMAGE_FSTYPES should be used instead. This patch removes any response to SDIMG_COMPRESSION within sdcard_image-rpi.bbclass Signed-off-by: Iurii Lunev <koolkhel@mail.ru>
This commit is contained in:
parent
b25228fcb3
commit
7f10b74dc8
|
@ -64,13 +64,6 @@ do_image_rpi_sdimg[recrdeps] = "do_build"
|
||||||
# SD card image name
|
# SD card image name
|
||||||
SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
|
SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
|
||||||
|
|
||||||
# Compression method to apply to SDIMG after it has been created. Supported
|
|
||||||
# compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file
|
|
||||||
# is kept and a new compressed file is created if one of these compression
|
|
||||||
# formats is chosen. If SDIMG_COMPRESSION is set to any other value it is
|
|
||||||
# silently ignored.
|
|
||||||
#SDIMG_COMPRESSION ?= ""
|
|
||||||
|
|
||||||
# Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS.
|
# Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS.
|
||||||
FATPAYLOAD ?= ""
|
FATPAYLOAD ?= ""
|
||||||
|
|
||||||
|
@ -177,19 +170,6 @@ IMAGE_CMD_rpi-sdimg () {
|
||||||
else
|
else
|
||||||
dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024)
|
dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Optionally apply compression
|
|
||||||
case "${SDIMG_COMPRESSION}" in
|
|
||||||
"gzip")
|
|
||||||
gzip -k9 "${SDIMG}"
|
|
||||||
;;
|
|
||||||
"bzip2")
|
|
||||||
bzip2 -k9 "${SDIMG}"
|
|
||||||
;;
|
|
||||||
"xz")
|
|
||||||
xz -k "${SDIMG}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; "
|
ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user