From ca70ea91e4f969384c8e4e45a4af0e8676d227c3 Mon Sep 17 00:00:00 2001 From: Ambroz Bizjak Date: Thu, 13 Jun 2019 01:02:22 +0200 Subject: [PATCH] bios: Fix build when ethphy is present but ethmac is not. While testing my Ethernet DMA, I renamed the `ethmac` module to `ethmac_dma` so that it wouldn't be used from the BIOS, but I got an undefined reference to `eth_init` because `bios.c` checks different CSR defines than the code that defines `eth_init`. --- litex/soc/software/bios/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index 204410f19..606d3dd08 100644 --- a/litex/soc/software/bios/main.c +++ b/litex/soc/software/bios/main.c @@ -433,7 +433,7 @@ int main(int i, char **c) printf("\n"); printf("--========= \e[1mPeripherals init\e[0m ===========--\n"); -#ifdef CSR_ETHPHY_CRG_RESET_ADDR +#ifdef CSR_ETHMAC_BASE eth_init(); #endif #ifdef CSR_SDRAM_BASE