Skip to content

Commit

Permalink
runtime: only build liteethif if Ethernet core present
Browse files Browse the repository at this point in the history
sbourdeauducq committed Apr 18, 2015
1 parent b972abd commit 904bcd2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion soc/runtime/liblwip/netif/liteethif.c
Original file line number Diff line number Diff line change
@@ -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 */

0 comments on commit 904bcd2

Please sign in to comment.