forked from M-Labs/artiq
bootloader: fix compilation warning without Ethernet
This commit is contained in:
parent
e0ebc1b21d
commit
b97f6a9e44
|
@ -18,7 +18,9 @@ use board_misoc::slave_fpga;
|
||||||
use board_misoc::{clock, ethmac, net_settings};
|
use board_misoc::{clock, ethmac, net_settings};
|
||||||
use board_misoc::uart_console::Console;
|
use board_misoc::uart_console::Console;
|
||||||
use riscv::register::{mcause, mepc, mtval};
|
use riscv::register::{mcause, mepc, mtval};
|
||||||
|
#[cfg(has_ethmac)]
|
||||||
use smoltcp::iface::{Routes, SocketStorage};
|
use smoltcp::iface::{Routes, SocketStorage};
|
||||||
|
#[cfg(has_ethmac)]
|
||||||
use smoltcp::wire::{HardwareAddress, IpAddress, Ipv4Address, Ipv6Address};
|
use smoltcp::wire::{HardwareAddress, IpAddress, Ipv4Address, Ipv6Address};
|
||||||
|
|
||||||
fn check_integrity() -> bool {
|
fn check_integrity() -> bool {
|
||||||
|
|
Loading…
Reference in New Issue