forked from M-Labs/artiq
1
0
Fork 0

runtime: only build liteethif if Ethernet core present

This commit is contained in:
Sebastien Bourdeauducq 2015-04-18 22:25:27 +08:00
parent b972abd142
commit 904bcd247f
1 changed files with 6 additions and 1 deletions

View File

@ -2,13 +2,16 @@
// LiteETH lwIP port for ARTIQ // LiteETH lwIP port for ARTIQ
// License: BSD // License: BSD
#include <generated/csr.h>
#ifdef CSR_ETHMAC_BASE
#include <lwip/opt.h> #include <lwip/opt.h>
#include <lwip/mem.h> #include <lwip/mem.h>
#include <netif/etharp.h> #include <netif/etharp.h>
#include "netif/liteethif.h" #include "netif/liteethif.h"
#include <generated/csr.h>
#include <hw/flags.h> #include <hw/flags.h>
#include <hw/ethmac_mem.h> #include <hw/ethmac_mem.h>
@ -132,3 +135,5 @@ err_t liteeth_init(struct netif *netif)
return ERR_OK; return ERR_OK;
} }
#endif /* CSR_ETHMAC_BASE */