From ff8d9e61bf893dba6170722d0e7b6730d8f1c07d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 18 May 2020 21:09:41 +0200 Subject: [PATCH] software/bios: move mdio to libliteeth. --- litex/soc/software/bios/commands/cmd_mdio.c | 2 +- litex/soc/software/bios/main.c | 2 +- litex/soc/software/libbase/Makefile | 2 +- litex/soc/software/libliteeth/Makefile | 2 +- litex/soc/software/{libbase => libliteeth}/mdio.c | 0 litex/soc/software/{include/base => libliteeth}/mdio.h | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename litex/soc/software/{libbase => libliteeth}/mdio.c (100%) rename litex/soc/software/{include/base => libliteeth}/mdio.h (100%) diff --git a/litex/soc/software/bios/commands/cmd_mdio.c b/litex/soc/software/bios/commands/cmd_mdio.c index 35b02073..86e8fc8a 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 a9857c88..2379dbee 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 13680ad0..55380d8e 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 593acc20..c3cf0b98 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 -- 2.30.2