`dfu_alt_info` is read via env_get() which doesn't expand ${var}
references the way hush does on a command line. So any board wanting
to point a DFU alt at an existing buffer had to hardcode its address
and size separately instead of referencing the real env vars.
This adds the missing ${...} expansion in drivers/dfu/dfu.c and
exports kernel_addr_r_size alongside the existing kernel_addr_r on
Snapdragon so dfu_alt_info can reference it directly.
Signed-off-by: Petr Hodina <[email protected]>
---
Petr Hodina (2):
dfu: expand ${...} env references in dfu_alt_info before parsing
arm: snapdragon: export kernel_addr_r_size
arch/arm/mach-snapdragon/board.c | 1 +
drivers/dfu/dfu.c | 16 +++++++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
---
base-commit: 71433ebf2aed1be5fbd2b1d497eae670ab9b9962
change-id: 20261004-b4-dfu-alt-info-env-expand-8657a233c5f8
Best regards,
--
Petr Hodina <[email protected]>