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`.
This commit is contained in:
parent
ab1f580470
commit
ca70ea91e4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue