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>
Showing
- Makefile 3 additions, 1 deletionMakefile
- include/net-common.h 501 additions, 0 deletionsinclude/net-common.h
- include/net-legacy.h 544 additions, 0 deletionsinclude/net-legacy.h
- include/net-lwip.h 14 additions, 0 deletionsinclude/net-lwip.h
- include/net.h 4 additions, 939 deletionsinclude/net.h
- net/Makefile 2 additions, 0 deletionsnet/Makefile
- net/net-common.c 13 additions, 0 deletionsnet/net-common.c
- net/net.c 0 additions, 12 deletionsnet/net.c
Loading
Please register or sign in to comment