Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame^] | 1 | # Define the 'qemu-sd' conversion type |
| 2 | # |
| 3 | # This conversion type pads any image to the 256K boundary to ensure that the |
| 4 | # image file can be used directly with QEMU's SD emulation which requires the |
| 5 | # block device to match that of valid SD card sizes (which are multiples of |
| 6 | # 256K). |
| 7 | |
| 8 | CONVERSIONTYPES_append = " qemu-sd" |
| 9 | CONVERSION_CMD_qemu-sd = "cp ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qemu-sd; truncate -s %256K ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.qemu-sd" |
| 10 | CONVERSION_DEPENDS_qemu-sd = "coreutils-native" |