mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 21:54:37 +08:00
1d5d292b79
Make net.h a wrapper which includes net-common.h and either net-legacy.h or net-lwip.h based on NET_LWIP. The function copy_filename() can be useful when NET_LWIP is enabled, therefore move it out of net/net.c which is built only when networking choice is NET and create a new file net/net-common.c. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
15 lines
214 B
C
15 lines
214 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __NET_H__
|
|
#define __NET_H__
|
|
|
|
#include <net-common.h>
|
|
|
|
#if defined(CONFIG_NET_LWIP)
|
|
#include <net-lwip.h>
|
|
#else
|
|
#include <net-legacy.h>
|
|
#endif
|
|
|
|
#endif /* __NET_H__ */
|