summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2018-06-15 05:06:00 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2018-07-02 14:14:20 -0500
commit6dc73df73b2b95ec171d82558c2a0ed1437d8c0a (patch)
tree74a6f77ec616806fdf287f23042afedca98f5ddb /net
parentd1b226b7d403b29c1064318097d972ce804e96e7 (diff)
downloadu-boot-6dc73df73b2b95ec171d82558c2a0ed1437d8c0a.tar.gz
net: fastboot: Fix build when FASTBOOT_FLASH is disabled
When building without FASTBOOT_FLASH we don't include the intermediate update callback to keep the client alive, so ensure we don't try setting it here. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r--net/fastboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/fastboot.c b/net/fastboot.c
index a9f7c0743d..8afc5529cd 100644
--- a/net/fastboot.c
+++ b/net/fastboot.c
@@ -309,7 +309,9 @@ void fastboot_start_server(void)
fastboot_our_port = WELL_KNOWN_PORT;
+#if CONFIG_IS_ENABLED(FASTBOOT_FLASH)
fastboot_set_progress_callback(fastboot_timed_send_info);
+#endif
net_set_udp_handler(fastboot_handler);
/* zero out server ether in case the server ip has changed */