diff options
| -rw-r--r-- | board/sunxi/board.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 2929bc17f08..e9e3fb9a571 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -834,9 +834,12 @@ int misc_init_r(void) /* Set fdtfile to match the FIT configuration chosen in SPL. */ spl_dt_name = get_spl_dt_name(); if (spl_dt_name) { - char *prefix = IS_ENABLED(CONFIG_ARM64) ? "allwinner/" : ""; + const char *prefix = ""; char str[64]; + if (IS_ENABLED(CONFIG_ARM64) && !IS_ENABLED(CONFIG_OF_UPSTREAM)) + prefix = "allwinner/"; + snprintf(str, sizeof(str), "%s%s.dtb", prefix, spl_dt_name); env_set("fdtfile", str); } |
