Skip to content

Commit

Permalink
libusbdrivers: Add LWIP library
Browse files Browse the repository at this point in the history
LAN9730 utilizes LWIP when LWIP exists.

Signed-off-by: Siwei Zhuang <[email protected]>
  • Loading branch information
szhuang committed Jan 25, 2022
1 parent baf58d7 commit 5dea49d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libusbdrivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
1 change: 1 addition & 0 deletions libusbdrivers/src/drivers/lan9730.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <netif/etharp.h>
#include <lwip/stats.h>
#include <lwip/snmp.h>

#include "../services.h"

Expand Down

0 comments on commit 5dea49d

Please sign in to comment.