mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
net: tftp: remove explicit efi configuration dependency
Now it is clear that the feature actually depends on efi interfaces, not "bootefi" command. efi_set_bootdev() will automatically be nullified if necessary efi component is disabled. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
279b03d979
commit
593607c581
10
net/tftp.c
10
net/tftp.c
@@ -302,12 +302,10 @@ static void tftp_complete(void)
|
|||||||
time_start * 1000, "/s");
|
time_start * 1000, "/s");
|
||||||
}
|
}
|
||||||
puts("\ndone\n");
|
puts("\ndone\n");
|
||||||
if (IS_ENABLED(CONFIG_CMD_BOOTEFI)) {
|
if (!tftp_put_active)
|
||||||
if (!tftp_put_active)
|
efi_set_bootdev("Net", "", tftp_filename,
|
||||||
efi_set_bootdev("Net", "", tftp_filename,
|
map_sysmem(tftp_load_addr, 0),
|
||||||
map_sysmem(tftp_load_addr, 0),
|
net_boot_file_size);
|
||||||
net_boot_file_size);
|
|
||||||
}
|
|
||||||
net_set_state(NETLOOP_SUCCESS);
|
net_set_state(NETLOOP_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user