arch/risc-v/litex: Fix emac driver compilation when only IPv6 is used.
This commit is contained in:
parent
b738379684
commit
dec80be431
@ -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. */
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user