From 21ad435defb51ffa3654b08b4fc47c0b87b80853 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 16 Jan 2018 14:33:49 +1100 Subject: [PATCH] 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. --- litex/soc/software/bios/boot.c | 3 +++ litex/soc/software/bios/main.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index ed7d3cbaf..91da5b177 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -9,8 +9,11 @@ #include #include +#ifdef CSR_ETHMAC_BASE #include #include +#endif + #include "sfl.h" #include "boot.h" diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index afbcd4706..40f87ad85 100644 --- a/litex/soc/software/bios/main.c +++ b/litex/soc/software/bios/main.c @@ -10,7 +10,10 @@ #include #include + +#ifdef CSR_ETHMAC_BASE #include +#endif #include "sdram.h" #include "boot.h"