net: split net into net{,-common,-legacy,-lwip}
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>
This commit is contained in:
committed by
Tom Rini
parent
8cb330355b
commit
1d5d292b79
@@ -42,3 +42,5 @@ obj-$(CONFIG_CMD_WGET) += wget.o
|
||||
CFLAGS_eth_common.o += -Wno-format-extra-args
|
||||
|
||||
endif
|
||||
|
||||
obj-y += net-common.o
|
||||
|
||||
Reference in New Issue
Block a user