Skip to content

Commit 904bcd2

Browse files
committedApr 18, 2015
runtime: only build liteethif if Ethernet core present
1 parent b972abd commit 904bcd2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

Diff for: ‎soc/runtime/liblwip/netif/liteethif.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
// LiteETH lwIP port for ARTIQ
33
// License: BSD
44

5+
#include <generated/csr.h>
6+
7+
#ifdef CSR_ETHMAC_BASE
8+
59
#include <lwip/opt.h>
610
#include <lwip/mem.h>
711

812
#include <netif/etharp.h>
913
#include "netif/liteethif.h"
1014

11-
#include <generated/csr.h>
1215
#include <hw/flags.h>
1316
#include <hw/ethmac_mem.h>
1417

@@ -132,3 +135,5 @@ err_t liteeth_init(struct netif *netif)
132135

133136
return ERR_OK;
134137
}
138+
139+
#endif /* CSR_ETHMAC_BASE */

0 commit comments

Comments
 (0)
Please sign in to comment.