2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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

View File

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