diff --git a/litex/soc/software/bios/commands/cmd_mdio.c b/litex/soc/software/bios/commands/cmd_mdio.c index 35b020737..86e8fc8a9 100644 --- a/litex/soc/software/bios/commands/cmd_mdio.c +++ b/litex/soc/software/bios/commands/cmd_mdio.c @@ -5,7 +5,7 @@ #include -#include +#include "mdio.h" #include "../command.h" #include "../helpers.h" diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index a9857c88d..2379dbee2 100644 --- a/litex/soc/software/bios/main.c +++ b/litex/soc/software/bios/main.c @@ -38,7 +38,7 @@ #endif #ifdef CSR_ETHPHY_MDIO_W_ADDR -#include +#include "mdio.h" #endif #include "sdram.h" diff --git a/litex/soc/software/libbase/Makefile b/litex/soc/software/libbase/Makefile index 13680ad0e..55380d8e7 100755 --- a/litex/soc/software/libbase/Makefile +++ b/litex/soc/software/libbase/Makefile @@ -2,7 +2,7 @@ include ../include/generated/variables.mak include $(SOC_DIRECTORY)/software/common.mak OBJECTS=exception.o libc.o errno.o crc16.o crc32.o console.o \ - system.o id.o uart.o time.o qsort.o strtod.o spiflash.o spisdcard.o strcasecmp.o mdio.o + system.o id.o uart.o time.o qsort.o strtod.o spiflash.o spisdcard.o strcasecmp.o all: crt0-ctr.o crt0-xip.o libbase.a libbase-nofloat.a diff --git a/litex/soc/software/libliteeth/Makefile b/litex/soc/software/libliteeth/Makefile index 593acc203..c3cf0b98f 100644 --- a/litex/soc/software/libliteeth/Makefile +++ b/litex/soc/software/libliteeth/Makefile @@ -1,7 +1,7 @@ include ../include/generated/variables.mak include $(SOC_DIRECTORY)/software/common.mak -OBJECTS=udp.o tftp.o +OBJECTS=udp.o tftp.o mdio.o all: libliteeth.a diff --git a/litex/soc/software/libbase/mdio.c b/litex/soc/software/libliteeth/mdio.c similarity index 100% rename from litex/soc/software/libbase/mdio.c rename to litex/soc/software/libliteeth/mdio.c diff --git a/litex/soc/software/include/base/mdio.h b/litex/soc/software/libliteeth/mdio.h similarity index 100% rename from litex/soc/software/include/base/mdio.h rename to litex/soc/software/libliteeth/mdio.h