wic: Add support for variable sector size when creating ESP
Quoted 21 lines · Macpaul Lin via lists.openembedded.org
External email : Please do not click links or open attachments until you have verified the sender or the content.
Derive
sector_sizefrom theWIC_SECTOR_SIZEBitBake variable. Recalculate blocks to align with the chosen sector size. While the default sector size of mkdosfs is 512 bytes. Pass -S <sector_size> to align the setting ofWIC_SECTOR_SIZE.Signed-off-by Macpaul Lin <[email protected]>---
scripts/lib/wic/plugins/source/bootimg_efi.py | 15 +++++++++++++--1 file changed, 13 insertions(+), 2 deletions(-)Changes for v2:
- drop --sector-size, useget_bitbake_var("WIC_SECTOR_SIZE")instead.
- drop value filter of sector-size.
- drop creating new sub-varible for 'part'.
Quoted 3 lines
Changes for v3:
- Add -v option back for mkdosfs.
- Round up the value of blocks instead of round dwon.
Sorry for sending a patch with incorrect --subject-prefix. This patch should be v3.
A updated patch has been resend with --subject-prefix="PATCH v3"
Thanks
Macpaul Lin