diff options
-rw-r--r-- | classes/sdcard_image-rpi.bbclass | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass index 6244ee5..62fb491 100644 --- a/classes/sdcard_image-rpi.bbclass +++ b/classes/sdcard_image-rpi.bbclass | |||
@@ -64,13 +64,6 @@ do_image_rpi_sdimg[recrdeps] = "do_build" | |||
64 | # SD card image name | 64 | # SD card image name |
65 | SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg" | 65 | SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg" |
66 | 66 | ||
67 | # Compression method to apply to SDIMG after it has been created. Supported | ||
68 | # compression formats are "gzip", "bzip2" or "xz". The original .rpi-sdimg file | ||
69 | # is kept and a new compressed file is created if one of these compression | ||
70 | # formats is chosen. If SDIMG_COMPRESSION is set to any other value it is | ||
71 | # silently ignored. | ||
72 | #SDIMG_COMPRESSION ?= "" | ||
73 | |||
74 | # Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS. | 67 | # Additional files and/or directories to be copied into the vfat partition from the IMAGE_ROOTFS. |
75 | FATPAYLOAD ?= "" | 68 | FATPAYLOAD ?= "" |
76 | 69 | ||
@@ -177,19 +170,6 @@ IMAGE_CMD_rpi-sdimg () { | |||
177 | else | 170 | else |
178 | dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) | 171 | dd if=${SDIMG_ROOTFS} of=${SDIMG} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) |
179 | fi | 172 | fi |
180 | |||
181 | # Optionally apply compression | ||
182 | case "${SDIMG_COMPRESSION}" in | ||
183 | "gzip") | ||
184 | gzip -k9 "${SDIMG}" | ||
185 | ;; | ||
186 | "bzip2") | ||
187 | bzip2 -k9 "${SDIMG}" | ||
188 | ;; | ||
189 | "xz") | ||
190 | xz -k "${SDIMG}" | ||
191 | ;; | ||
192 | esac | ||
193 | } | 173 | } |
194 | 174 | ||
195 | ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; " | 175 | ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; " |