[riot-notifications] [RIOT-OS/RIOT] drivers/mtd: fix Kconfig dependencies (#16836)

Francisco notifications at github.com
Fri Sep 10 15:39:02 CEST 2021


### Contribution description

Currently, implementations of the MTD api are selecting the module,
this makes it easy for default backends to be selected. But the
correct modeling is simply selecting the MTD api and then selecting
a backend. BOARDs providing one of the backends can expose this and
then that backend can be selected by default.

There is also currently nothing preventing from using the MTD api
with no backend since a mock backend can easily be provided as is
done in all mtd tests.

### Testing procedure

- Murdock should take care of it
- Test the change on native with `tests/mtd_raw`

### Issues/PRs references

Split out of https://github.com/RIOT-OS/RIOT/pull/16780

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16836

-- Commit Summary --

  * tests/mtd_daw: add Kconfig
  * drivers/mtd: fix Kconfig dependencies

-- File Changes --

    M cpu/native/Kconfig (1)
    M cpu/native/mtd/Kconfig (8)
    M drivers/Kconfig (3)
    M drivers/at24cxxx/Kconfig (2)
    D drivers/at24cxxx/mtd/Kconfig (13)
    M drivers/at25xxx/Kconfig (2)
    D drivers/at25xxx/mtd/Kconfig (12)
    M drivers/mtd/Kconfig (44)
    D drivers/mtd_flashpage/Kconfig (17)
    D drivers/mtd_mci/Kconfig (12)
    M drivers/mtd_sdcard/Kconfig (7)
    D drivers/mtd_spi_nor/Kconfig (13)
    A tests/mtd_raw/app.config.test (7)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16836.patch
https://github.com/RIOT-OS/RIOT/pull/16836.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16836
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210910/658f4b2e/attachment.htm>


More information about the notifications mailing list