mtd-rw: fix build failure with kernel 5.10
authorDavid Bauer <mail@david-bauer.net>
Fri, 26 Feb 2021 14:38:15 +0000 (15:38 +0100)
committerRosen Penev <rosenp@gmail.com>
Tue, 6 Apr 2021 23:02:22 +0000 (16:02 -0700)
commitd9f1bc3754620906e5112ddc2635fcbc296a4e08
tree614e08af2810b70ceaa44d4731c09b9d1be94d8a
parent3a3b7c6eeedb64b4dac57af28e3a07903dce9ab5
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>
(cherry picked from commit c6b3d949295e687c54a6d87f60f49f7ccc4bdcdf)
kernel/mtd-rw/Makefile
kernel/mtd-rw/patches/0001-mtd-disabled.patch [new file with mode: 0644]