On Mon, 14 Nov 2022 at 19:08, Peter Delevoryas <pe...@pjd.dev> wrote: > > I've been using this patch for a long time so that I don't have to use > dd to zero-extend stuff all the time. It's just doing what people are > doing already, right? I hope it's not controversial.
We just had a thread about this kind of thing for one of the riscv boards (although there the attempted approach was to change the size of the flash device to match the provided file, rather than changing the file to match the flash device): https://lore.kernel.org/qemu-devel/20221107130217.2243815-1-suni...@ventanamicro.com/ The short summary is (a) yes, it's controversial and (b) if we do something for this we need to have a standard approach that we do on all boards, not "some boards do some weird magic in different ways from everything else"... thanks -- PMM