mtd-rw: fix build failure with kernel 5.10 14912/head
authorDavid Bauer <mail@david-bauer.net>
Fri, 26 Feb 2021 14:38:15 +0000 (15:38 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sat, 6 Mar 2021 21:28:55 +0000 (22:28 +0100)
commitc6b3d949295e687c54a6d87f60f49f7ccc4bdcdf
tree9bc29ddaa2631952ebac45d7cb49991f6356daae
parenta5fbbb9970864934de080940d07d84bf4b0e00b4
mtd-rw: fix build failure with kernel 5.10

When building mtd-rw for a target based on Kernel 5.10 which has
CONFIG_MTD disabled the build fails with

ERROR: "put_mtd_device" [../mtd-rw.ko] undefined!
ERROR: "get_mtd_device" [../mtd-rw.ko] undefined!

Omit building the package for such a target.

Signed-off-by: David Bauer <mail@david-bauer.net>
kernel/mtd-rw/Makefile
kernel/mtd-rw/patches/0001-mtd-disabled.patch [new file with mode: 0644]