Include the ethernet related header files conditionally

Only including those header files in the litex firmware is the first step to
move the firmware parts of liteeth to the liteeth tree.
This commit is contained in:
Felix Held 2018-01-16 14:33:49 +11:00
parent d37cf226d6
commit 21ad435def
2 changed files with 6 additions and 0 deletions

View File

@ -9,8 +9,11 @@
#include <generated/mem.h> #include <generated/mem.h>
#include <generated/csr.h> #include <generated/csr.h>
#ifdef CSR_ETHMAC_BASE
#include <net/microudp.h> #include <net/microudp.h>
#include <net/tftp.h> #include <net/tftp.h>
#endif
#include "sfl.h" #include "sfl.h"
#include "boot.h" #include "boot.h"

View File

@ -10,7 +10,10 @@
#include <generated/csr.h> #include <generated/csr.h>
#include <generated/mem.h> #include <generated/mem.h>
#ifdef CSR_ETHMAC_BASE
#include <net/microudp.h> #include <net/microudp.h>
#endif
#include "sdram.h" #include "sdram.h"
#include "boot.h" #include "boot.h"