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"