kernel: fix include of myloader.o since kernel 5.4
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 13 Apr 2020 16:43:43 +0000 (18:43 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 24 Apr 2020 15:50:12 +0000 (17:50 +0200)
commit5f923498415d79dc500f7ba26c30dde5c9f27586
treed5e987bf4a0890ce17193b8cfee3970ddce31be5
parent7b2731a691f7abb53a8ef3b2bd7b7170f0f87264
kernel: fix include of myloader.o since kernel 5.4

Between 4.19 and 5.4, mtd parsers have been moved to "parsers"
subdirectory. Based on this, the selection of myloader.o in OpenWrt
was also moved to that subdirectory, while the Kconfig and our local
myloader.c file remained in /drivers/mtd.

This resulted in linking errors like the following (on ath25@5.4):

make[8]: *** No rule to make target 'drivers/mtd/parsers/myloader.o', ...
   needed by 'drivers/mtd/parsers/built-in.a'.  Stop.
make[7]: *** [scripts/Makefile.build:500: drivers/mtd/parsers] Error 2
make[6]: *** [scripts/Makefile.build:500: drivers/mtd] Error 2

Since myloader.c is not too big, this patch moves it to the kernel patches,
allowing to adjust the path for kernel 5.4 and keeping Makefiles and
file paths better in sync.

Other patches have been refreshed accordingly.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/patches-5.4/405-mtd-tp-link-partition-parser.patch
target/linux/generic/files/drivers/mtd/myloader.c [deleted file]
target/linux/generic/pending-4.14/430-mtd-add-myloader-partition-parser.patch
target/linux/generic/pending-4.19/430-mtd-add-myloader-partition-parser.patch
target/linux/generic/pending-5.4/430-mtd-add-myloader-partition-parser.patch
target/linux/generic/pending-5.4/497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch