bios: Fix build when ethphy is present but ethmac is not.
authorAmbroz Bizjak <ambrop7@gmail.com>
Wed, 12 Jun 2019 23:02:22 +0000 (01:02 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 23:02:22 +0000 (01:02 +0200)
commitca70ea91e4f969384c8e4e45a4af0e8676d227c3
tree3ababaaa4235c7c747da918319855130d69c4c6f
parentab1f58047064c459475970d11e540c6e0e5367a8
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