diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-06-04 07:44:25 +0200 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2024-06-06 09:11:21 +0200 |
| commit | 4339138a2086f8449b9356130cb6e97a81aa8679 (patch) | |
| tree | ff4d9ac1617306fb075751f039d82a990143d947 /drivers/dfu | |
| parent | 85ced6f4745f529098cae38a5bd3144035a1318c (diff) | |
dfu: add missing dependency for SPI flash DFU driver
Building the SPI flash DFU driver fails if SPI flash support is missing.
drivers/dfu/dfu_sf.c:123:29: error:
‘CONFIG_SF_DEFAULT_MODE’ undeclared (first use in this function);
Add the missing dependency.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'drivers/dfu')
| -rw-r--r-- | drivers/dfu/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dfu/Kconfig b/drivers/dfu/Kconfig index 0360d9da142..971204758aa 100644 --- a/drivers/dfu/Kconfig +++ b/drivers/dfu/Kconfig @@ -68,6 +68,7 @@ config DFU_RAM config DFU_SF bool "SPI flash back end for DFU" + depends on SPI_FLASH || DM_SPI_FLASH help This option enables using DFU to read and write to SPI flash based storage. |
