kernel: allow skipping deprecated uImage.FIT partition parser
authorDaniel Golle <daniel@makrotopia.org>
Fri, 24 Nov 2023 12:22:27 +0000 (12:22 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 1 Feb 2024 22:03:27 +0000 (22:03 +0000)
commit8dea8926e579f67ee3c59b99764eecad1a368f1b
tree6b070d9bb23267a9ac080229d8c1a4886fdef1f2
parentc882abbce7d433a8d69a2449b0ffabcf409cf1e0
kernel: allow skipping deprecated uImage.FIT partition parser

In order to allow gradually migrating the boards currently using the
uImage.FIT partition (deprecated/rejected) parser to the new fitblk
driver, skip the partition parser code in case the new fitblk driver
(which serves the same purpose) is used.

As an indicator for the use of the new fitblk driver, check if the
/chosen/rootdisk property is present in the Device Tree.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/files/block/partitions/fit.c