Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # This class removes the empty partition table header |
| 2 | # in the WIC file when --no-table WKS option is used |
| 3 | |
Andrew Geissler | 9347dd4 | 2023-03-03 12:38:41 -0600 | [diff] [blame^] | 4 | IMAGE_TYPES:append = " wic.nopt" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 5 | |
| 6 | CONVERSIONTYPES += "nopt" |
| 7 | |
| 8 | # 1024 bytes are skipped which corresponds to the size of the partition table header to remove |
| 9 | CONVERSION_CMD:nopt = "tail -c +1025 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} > ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}.nopt" |