mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
ARM: uniphier: do not overwrite fdt_file environment
This code auto-detects the best-match FDT file name, but it should respect the user's choice if "fdt_file" environment is found in a saved set of environments. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
80630dad9d
commit
4565a74d56
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ static int uniphier_set_fdt_file(void)
|
|||
int buf_len = 256;
|
||||
int ret;
|
||||
|
||||
if (getenv("fdt_file"))
|
||||
return 0; /* do nothing if it is already set */
|
||||
|
||||
ret = fdt_get_string(gd->fdt_blob, 0, "compatible", &compat);
|
||||
if (ret)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Reference in a new issue