Signed-off-by: Eric Bénard <eric@xxxxxxxxxx> --- include/net.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/include/net.h b/include/net.h index 3f2187e..eb087b2 100644 --- a/include/net.h +++ b/include/net.h @@ -64,8 +64,13 @@ void eth_halt(void); /* stop SCC */ * board code for boards which store their MAC address at some unusual * place. */ +#if !defined(CONFIG_NET) +static inline void eth_register_ethaddr(int ethid, const char *ethaddr) +{ +} +#else void eth_register_ethaddr(int ethid, const char *ethaddr); - +#endif /* * Ethernet header */ -- 1.7.7.6 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox