net: bootp fix vci string on SPL-Boot
authorHannes Petermaier <oe5hpm@oevsv.at>
Tue, 25 Aug 2015 10:17:59 +0000 (12:17 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 28 Oct 2015 19:44:04 +0000 (14:44 -0500)
commit214dc1da4aa90c40e653c4daa097290fd61b3f10
tree06d6a2a10b0f8194492fb3542b5f284cbbc98d55
parentf5fb734672f3fc78f63ed6a14cbdca2251ba3415
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>
net/bootp.c