From: Felix Held Date: Tue, 16 Jan 2018 03:33:49 +0000 (+1100) Subject: Include the ethernet related header files conditionally X-Git-Tag: 24jan2021_ls180~1759^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21ad435defb51ffa3654b08b4fc47c0b87b80853;p=litex.git 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. --- diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index ed7d3cba..91da5b17 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 afbcd470..40f87ad8 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"