diff options
author | Jan Kiszka | 2022-10-14 18:10:06 +0200 |
---|---|---|
committer | Heinrich Schuchardt | 2022-11-06 10:50:04 +0100 |
commit | 77b5c4a5b1dcc6dafde116bfdd66f769769a0aeb (patch) | |
tree | 55a24eae5815bef26b4c8c3181088bde91c49d09 /net/bootp.c | |
parent | 607566d010925c53355839c6e6c6451b15adfa58 (diff) |
efi_loader: Let networking support depend on NETDEVICES
CONFIG_NET does not imply that there are actually network devices
available, only CONFIG_NETDEVICES does. Changing to this dependency
obsoletes the check in Kconfig because NETDEVICES means DM_ETH.
Fixes: 0efe1bcf5c2c ("efi_loader: Add network access support")
Suggested-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'net/bootp.c')
-rw-r--r-- | net/bootp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bootp.c b/net/bootp.c index b260d5d09e6..6c01e381532 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -1077,7 +1077,9 @@ static void dhcp_handler(uchar *pkt, unsigned dest, struct in_addr sip, strlen(CONFIG_SYS_BOOTFILE_PREFIX)) == 0) { #endif /* CONFIG_SYS_BOOTFILE_PREFIX */ dhcp_packet_process_options(bp); - efi_net_set_dhcp_ack(pkt, len); + if (CONFIG_IS_ENABLED(EFI_LOADER) && + CONFIG_IS_ENABLED(NET_DEVICES)) + efi_net_set_dhcp_ack(pkt, len); #if defined(CONFIG_SERVERIP_FROM_PROXYDHCP) if (!net_server_ip.s_addr) |