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 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" -- 2.30.2