]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: split net into net{,-common,-legacy,-lwip}
authorJerome Forissier <jerome.forissier@linaro.org>
Wed, 16 Oct 2024 10:04:00 +0000 (12:04 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 16 Oct 2024 17:11:56 +0000 (11:11 -0600)
commit1d5d292b79415abf3d0214cd2f707b43cf9fdfbf
tree349a83bb8c17c24b19bbfc918b5076afc300ae8e
parent8cb330355bd52852f209cf08c1e79babfbdf1253
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>
Makefile
include/net-common.h [new file with mode: 0644]
include/net-legacy.h [new file with mode: 0644]
include/net-lwip.h [new file with mode: 0644]
include/net.h
net/Makefile
net/net-common.c [new file with mode: 0644]
net/net.c