kernel: generic: improve FIT partition parser

* only map filesystems configured in 'loadables'
 * allow mapping more than one filesystem (e.g. customization/branding
   or localization in addition to rootfs)
 * small cleaning here and there

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2022-03-23 19:29:07 +00:00
parent 1bf94b6797
commit ab143647ef
2 changed files with 41 additions and 13 deletions

View File

@@ -156,7 +156,7 @@
.name = "mtdblock",
.major = MTD_BLOCK_MAJOR,
+#ifdef CONFIG_FIT_PARTITION
+ .part_bits = 1,
+ .part_bits = 2,
+#else
.part_bits = 0,
+#endif