kernel: generic: use chosen bootconf in FIT partition parser
authorDaniel Golle <daniel@makrotopia.org>
Mon, 21 Mar 2022 23:31:38 +0000 (23:31 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 21 Mar 2022 23:48:09 +0000 (23:48 +0000)
commit503f3b9f0e9693bb983a0f259aa4ba106a690140
tree417a920ebe23ba24ac205249a4c1e4ac9c8012bd
parentdfc3ea6810904f4f498d4a1304443c1a4c9f1e3c
kernel: generic: use chosen bootconf in FIT partition parser

If the selected boot configuration is stored by U-Boot in '/chosen'
node as 'bootconf' attribute, use that configuration to resolve the
block device used as rootfs. Fall back to use the default configuration
in case 'bootconf' is not present.

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