fastboot: lift restrictions on !NET_LWIP for USB
authorMichael Walle <mwalle@kernel.org>
Wed, 12 Mar 2025 07:36:55 +0000 (08:36 +0100)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Thu, 10 Apr 2025 07:59:37 +0000 (09:59 +0200)
commitd3c9f810f2b317ba376b4d9556e63a043b210355
tree948ca6b7f1cc65325482f4332ab019c9777771c9
parent7cedd20ed384a9748bba3fee05d504674109087a
fastboot: lift restrictions on !NET_LWIP for USB

Fastboot works either over TCP, UDP or USB. The latter doesn't have
anything to do with networking, thus should work just fine with
regardless which network stack is selected. In practice, header symbols
are used inside common code paths. Add some ifdeffery to guard against
that.

This will make fastboot over USB work with the new LWIP stack.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20250312073655.2281377-1-mwalle@kernel.org
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
cmd/fastboot.c
drivers/fastboot/Kconfig
drivers/fastboot/fb_common.c