diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-11-30 11:42:02 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2022-12-08 14:30:39 +0100 |
commit | bcd4110702d38c5356c84da6dc286c565ec19db3 (patch) | |
tree | 0502513485e2c814f17b32ed982ced899b7c644b | |
parent | 14dc0ab138988a8e45ffa086444ec8db48b3f103 (diff) | |
download | u-boot-bcd4110702d38c5356c84da6dc286c565ec19db3.zip u-boot-bcd4110702d38c5356c84da6dc286c565ec19db3.tar.gz u-boot-bcd4110702d38c5356c84da6dc286c565ec19db3.tar.bz2 |
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>
-rw-r--r-- | include/dfu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dfu.h b/include/dfu.h index dcb9cd9..0792222 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -495,7 +495,7 @@ static inline int dfu_fill_entity_mtd(struct dfu_entity *dfu, char *devstr, } #endif -#ifdef CONFIG_DFU_VIRT +#if CONFIG_IS_ENABLED(DFU_VIRT) int dfu_fill_entity_virt(struct dfu_entity *dfu, char *devstr, char **argv, int argc); int dfu_write_medium_virt(struct dfu_entity *dfu, u64 offset, |