From 904bcd247f3c3f752f9b05978aebf135bc5b2fbb Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 18 Apr 2015 22:25:27 +0800 Subject: [PATCH] runtime: only build liteethif if Ethernet core present --- soc/runtime/liblwip/netif/liteethif.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/soc/runtime/liblwip/netif/liteethif.c b/soc/runtime/liblwip/netif/liteethif.c index d39007d6e..384c189d3 100644 --- a/soc/runtime/liblwip/netif/liteethif.c +++ b/soc/runtime/liblwip/netif/liteethif.c @@ -2,13 +2,16 @@ // LiteETH lwIP port for ARTIQ // License: BSD +#include + +#ifdef CSR_ETHMAC_BASE + #include #include #include #include "netif/liteethif.h" -#include #include #include @@ -132,3 +135,5 @@ err_t liteeth_init(struct netif *netif) return ERR_OK; } + +#endif /* CSR_ETHMAC_BASE */