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>
Sun, 27 Mar 2022 15:14:00 +0000 (16:14 +0100)
commitda13fb9742a72ce9e74b6409cc77c20a5042444d
tree4aed4a73f1c2eff0d814b394cfc94fbc74a3d2df
parent64fd2713a31855e25b2104c8098e10f9e6b77ef3
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>
(cherry picked from commit 503f3b9f0e9693bb983a0f259aa4ba106a690140)
target/linux/generic/files/block/partitions/fit.c