]> git.dujemihanovic.xyz Git - u-boot.git/commit
dfu: Make DFU virtual backend SPL friendly
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 30 Nov 2022 10:42:02 +0000 (11:42 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 8 Dec 2022 13:30:39 +0000 (14:30 +0100)
commitbcd4110702d38c5356c84da6dc286c565ec19db3
tree0502513485e2c814f17b32ed982ced899b7c644b
parent14dc0ab138988a8e45ffa086444ec8db48b3f103
dfu: Make DFU virtual backend SPL friendly

Define stub for dfu_*_virt function in SPL, because
CONFIG_SPL_DFU_VIRT is not defined.

This patch avoids compilation issue in dfu_fill_entity() when
CONFIG_SPL_DFU is activated because the dfu_fill_entity_virt()
function is not available.

Fixes: ec44cace4b8d2 ("dfu: add DFU virtual backend")
Reported-by: Marek Vasut <marex@denx.de>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Tested-by: Marek Vasut <marex@denx.de>
include/dfu.h