arch/risc-v/litex: Fix emac driver compilation when only IPv6 is used.

This commit is contained in:
Stuart Ianna 2023-05-05 11:32:19 +10:00 committed by Xiang Xiao
parent b738379684
commit dec80be431
2 changed files with 4 additions and 1 deletions

View File

@ -626,8 +626,8 @@ static void litex_receive(struct litex_emac_s *priv)
litex_transmit(priv);
}
}
#endif
else
#endif
{
NETDEV_RXDROPPED(&priv->dev);
}
@ -788,11 +788,13 @@ static int litex_ifup(struct net_driver_s *dev)
struct litex_emac_s *priv = (struct litex_emac_s *)dev->d_private;
int ret;
#ifdef CONFIG_NET_IPv4
ninfo("Bringing up: %d.%d.%d.%d\n",
(int)(dev->d_ipaddr & 0xff),
(int)((dev->d_ipaddr >> 8) & 0xff),
(int)((dev->d_ipaddr >> 16) & 0xff),
(int)(dev->d_ipaddr >> 24));
#endif
/* Configure the EMAC interface for normal operation. */

View File

@ -49,6 +49,7 @@ CONFIG_DEV_ZERO=y
CONFIG_ETH0_PHY_DP83848C=y
CONFIG_EXAMPLES_HELLO=y
CONFIG_EXAMPLES_HELLO_STACKSIZE=8192
CONFIG_FILE_STREAM=y
CONFIG_FS_PROCFS=y
CONFIG_IDLETHREAD_STACKSIZE=8192
CONFIG_INIT_ENTRYPOINT="nsh_main"