Include the ethernet related header files conditionally
authorFelix Held <felix-github@felixheld.de>
Tue, 16 Jan 2018 03:33:49 +0000 (14:33 +1100)
committerFelix Held <felix-github@felixheld.de>
Tue, 16 Jan 2018 03:33:49 +0000 (14:33 +1100)
Only including those header files in the litex firmware is the first step to
move the firmware parts of liteeth to the liteeth tree.

litex/soc/software/bios/boot.c
litex/soc/software/bios/main.c

index ed7d3cbaf1da1d8c40f2a6e950f975ba4579643c..91da5b177fe584b3ab76b32e21f8afcd69938f29 100644 (file)
@@ -9,8 +9,11 @@
 #include <generated/mem.h>
 #include <generated/csr.h>
 
+#ifdef CSR_ETHMAC_BASE
 #include <net/microudp.h>
 #include <net/tftp.h>
+#endif
+
 #include "sfl.h"
 #include "boot.h"
 
index afbcd4706c7b045afa48f1b50ae8435ccd3ac02e..40f87ad8584887693b7d17fb615531c148137a9f 100644 (file)
 
 #include <generated/csr.h>
 #include <generated/mem.h>
+
+#ifdef CSR_ETHMAC_BASE
 #include <net/microudp.h>
+#endif
 
 #include "sdram.h"
 #include "boot.h"