]> git.ipfire.org Git - thirdparty/u-boot.git/commit
board: phytec: common: k3: Update boot_targets at runtime
authorWadim Egorov <w.egorov@phytec.de>
Thu, 8 May 2025 15:15:46 +0000 (17:15 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 22 May 2025 19:51:56 +0000 (13:51 -0600)
commit5900a2db4b7688586dc4605f4bdccba16a2b103d
treefcff90b7bbd4c2bd91d1cf269edf580fe974835d
parent7fbadff8a7d62118896fe19881a9c744b9aa3a77
board: phytec: common: k3: Update boot_targets at runtime

Factor out boot device detection from board_late_init() into a new
boot_targets_setup() helper.

Adjust the boot_targets environment variable to favor the device we
just booted from. If boot_targets is still at its default value,
prepend the current boot device to the list; otherwise leave any
user-customized order untouched.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
board/phytec/common/k3/board.c