From: Ambroz Bizjak Date: Wed, 12 Jun 2019 23:02:22 +0000 (+0200) Subject: bios: Fix build when ethphy is present but ethmac is not. X-Git-Tag: 24jan2021_ls180~1164^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca70ea91e4f969384c8e4e45a4af0e8676d227c3;p=litex.git 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`. --- diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index 204410f1..606d3dd0 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