From 5dea49d64ecf47d94b508a60ee3824ec587d4e01 Mon Sep 17 00:00:00 2001 From: Siwei Zhuang Date: Mon, 24 Jan 2022 23:54:33 +1100 Subject: [PATCH] libusbdrivers: Add LWIP library LAN9730 utilizes LWIP when LWIP exists. Signed-off-by: Siwei Zhuang --- libusbdrivers/CMakeLists.txt | 3 +++ libusbdrivers/src/drivers/lan9730.c | 1 + 2 files changed, 4 insertions(+) diff --git a/libusbdrivers/CMakeLists.txt b/libusbdrivers/CMakeLists.txt index 205be59..5783719 100644 --- a/libusbdrivers/CMakeLists.txt +++ b/libusbdrivers/CMakeLists.txt @@ -28,4 +28,7 @@ if(LibUSB) add_library(usbdrivers STATIC EXCLUDE_FROM_ALL ${deps}) target_include_directories(usbdrivers PUBLIC include plat_include/${KernelPlatform}) target_link_libraries(usbdrivers sel4 muslc platsupport usbdrivers_Config lwip_Config) + if(LibLwip) + target_link_libraries(usbdrivers lwip) + endif() endif() diff --git a/libusbdrivers/src/drivers/lan9730.c b/libusbdrivers/src/drivers/lan9730.c index 72039d0..f056986 100644 --- a/libusbdrivers/src/drivers/lan9730.c +++ b/libusbdrivers/src/drivers/lan9730.c @@ -22,6 +22,7 @@ #include #include +#include #include "../services.h"