diff options
| author | Primoz Fiser <[email protected]> | 2025-12-05 12:10:43 +0100 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2025-12-06 15:26:07 -0300 |
| commit | 8f4d74929d0ed547ec1af7cf03c8ed5b449f821b (patch) | |
| tree | 9c9f51e5c7026fe7427e777b4ab8a9432b208c36 | |
| parent | 2d964cb7257a68793098724b05534edb83c68274 (diff) | |
board: phytec: phycore-imx93: Set boot_targets dynamically
Set boot_targets environment variable dynamically, so that when booting
from SD-card, boot binaries are also preferably fetched from the SD-card
by default. If the user decides to set their own boot_targets, we should
not overwrite them.
Signed-off-by: Primoz Fiser <[email protected]>
Reviewed-by: Wadim Egorov <[email protected]>
| -rw-r--r-- | board/phytec/phycore_imx93/phycore-imx93.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/phytec/phycore_imx93/phycore-imx93.c b/board/phytec/phycore_imx93/phycore-imx93.c index c6a4e923b07..cfc6d91f20f 100644 --- a/board/phytec/phycore_imx93/phycore-imx93.c +++ b/board/phytec/phycore_imx93/phycore-imx93.c @@ -38,6 +38,8 @@ int board_late_init(void) switch (get_boot_device()) { case SD2_BOOT: env_set_ulong("mmcdev", 1); + if (!env_get("boot_targets")) + env_set("boot_targets", "mmc1 mmc0 ethernet"); break; case MMC1_BOOT: env_set_ulong("mmcdev", 0); |
