]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dfu: add missing dependency for SPI flash DFU driver
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 4 Jun 2024 05:44:25 +0000 (07:44 +0200)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Thu, 6 Jun 2024 07:11:21 +0000 (09:11 +0200)
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 <heinrich.schuchardt@canonical.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240604054425.105902-1-heinrich.schuchardt@canonical.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
drivers/dfu/Kconfig

index 0360d9da1427bb59df668c8dcd717c961ab5ac6f..971204758aa8f8281157e954dec7c263a6df7a95 100644 (file)
@@ -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.