mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-29 07:33:29 +08:00
net: bootp fix vci string on SPL-Boot
If CONFIG_CMD_DHCP is enabled, the vci (vendor-class-identifier) string isn't inserted into the bootp-packet during SPL stage because the CONFIG_BOOTP_VCI_STRING instead CONFIG_SPL_NET_VCI_STRING We fix this with testing for CONFIG_SPL_BUILD and testing for existing CONFIG_SPL_NET_VCI_STRING. Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
f5fb734672
commit
214dc1da4a
@ -498,7 +498,9 @@ static int dhcp_extended(u8 *e, int message_type, struct in_addr server_ip,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BOOTP_VCI_STRING
|
||||
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_NET_VCI_STRING)
|
||||
put_vci(e, CONFIG_SPL_NET_VCI_STRING);
|
||||
#elif defined(CONFIG_BOOTP_VCI_STRING)
|
||||
put_vci(e, CONFIG_BOOTP_VCI_STRING);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user