[SLOF] [PATCH v2 0/4] net-snk: Move networking files into a library
Thomas Huth
thuth at redhat.com
Fri Jun 10 18:33:28 AEST 2016
Here are some patches that move the files needed for networking
in SLOF into a separate library. This is some preparation work
for a major rework later: The goal is to link the network stack
directly into paflof instead, so we can finally get completely
rid of the separate net-snk binary in the firmware image (since
this separation always caused more confusion and problems than
having real advantages).
Note: I've created the patches with git rename detection, so that
they are easier to review. If you prefer "real" plain patches instead,
please let me know.
v2:
- Make sure to not break compilation inbetween
- Add a separate patch for removing the remainders of the MTFTP code
Thomas Huth (4):
net-snk: Get rid of netlib and netapps prefixes in include statements
net: Move files from clients/net-snk/app/netlib/ to lib/libnet/
net: Move also files from clients/net-snk/app/netapps/ to lib/libnet/
net: Remove remainders of the MTFTP code
board-js2x/Makefile | 3 +-
board-qemu/Makefile | 4 +--
clients/net-snk/Makefile | 2 +-
clients/net-snk/app/Makefile | 5 +--
clients/net-snk/app/main.c | 2 +-
clients/net-snk/app/netlib/Makefile | 42 ----------------------
lib/Makefile | 2 +-
.../net-snk/app/netapps => lib/libnet}/Makefile | 33 ++++++++++++++---
{clients/net-snk/app/netapps => lib/libnet}/args.c | 0
{clients/net-snk/app/netapps => lib/libnet}/args.h | 0
{clients/net-snk/app/netlib => lib/libnet}/bootp.c | 0
{clients/net-snk/app/netlib => lib/libnet}/dhcp.c | 2 +-
{clients/net-snk/app/netlib => lib/libnet}/dhcp.h | 7 +---
.../net-snk/app/netlib => lib/libnet}/dhcpv6.c | 12 +++----
.../net-snk/app/netlib => lib/libnet}/dhcpv6.h | 2 +-
{clients/net-snk/app/netlib => lib/libnet}/dns.c | 0
{clients/net-snk/app/netlib => lib/libnet}/dns.h | 0
.../net-snk/app/netlib => lib/libnet}/ethernet.c | 0
.../net-snk/app/netlib => lib/libnet}/ethernet.h | 0
.../net-snk/app/netlib => lib/libnet}/icmpv6.c | 10 +++---
.../net-snk/app/netlib => lib/libnet}/icmpv6.h | 4 +--
{clients/net-snk/app/netlib => lib/libnet}/ipv4.c | 0
{clients/net-snk/app/netlib => lib/libnet}/ipv4.h | 0
{clients/net-snk/app/netlib => lib/libnet}/ipv6.c | 10 +++---
{clients/net-snk/app/netlib => lib/libnet}/ipv6.h | 2 +-
{clients/net-snk/app/netlib => lib/libnet}/ndp.c | 6 ++--
{clients/net-snk/app/netlib => lib/libnet}/ndp.h | 2 +-
.../net-snk/app/netapps => lib/libnet}/netapps.h | 2 +-
.../app/netapps/netboot.c => lib/libnet/netload.c | 16 ++++-----
{clients/net-snk/app/netapps => lib/libnet}/ping.c | 8 ++---
{clients/net-snk/app/netlib => lib/libnet}/tcp.c | 0
{clients/net-snk/app/netlib => lib/libnet}/tcp.h | 0
{clients/net-snk/app/netlib => lib/libnet}/tftp.c | 0
{clients/net-snk/app/netlib => lib/libnet}/tftp.h | 2 +-
{clients/net-snk/app/netlib => lib/libnet}/udp.c | 38 --------------------
{clients/net-snk/app/netlib => lib/libnet}/udp.h | 5 ---
36 files changed, 76 insertions(+), 145 deletions(-)
delete mode 100644 clients/net-snk/app/netlib/Makefile
rename {clients/net-snk/app/netapps => lib/libnet}/Makefile (50%)
rename {clients/net-snk/app/netapps => lib/libnet}/args.c (100%)
rename {clients/net-snk/app/netapps => lib/libnet}/args.h (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/bootp.c (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/dhcp.c (99%)
rename {clients/net-snk/app/netlib => lib/libnet}/dhcp.h (96%)
rename {clients/net-snk/app/netlib => lib/libnet}/dhcpv6.c (97%)
rename {clients/net-snk/app/netlib => lib/libnet}/dhcpv6.h (99%)
rename {clients/net-snk/app/netlib => lib/libnet}/dns.c (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/dns.h (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/ethernet.c (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/ethernet.h (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/icmpv6.c (98%)
rename {clients/net-snk/app/netlib => lib/libnet}/icmpv6.h (98%)
rename {clients/net-snk/app/netlib => lib/libnet}/ipv4.c (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/ipv4.h (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/ipv6.c (99%)
rename {clients/net-snk/app/netlib => lib/libnet}/ipv6.h (99%)
rename {clients/net-snk/app/netlib => lib/libnet}/ndp.c (98%)
rename {clients/net-snk/app/netlib => lib/libnet}/ndp.h (98%)
rename {clients/net-snk/app/netapps => lib/libnet}/netapps.h (97%)
rename clients/net-snk/app/netapps/netboot.c => lib/libnet/netload.c (99%)
rename {clients/net-snk/app/netapps => lib/libnet}/ping.c (98%)
rename {clients/net-snk/app/netlib => lib/libnet}/tcp.c (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/tcp.h (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/tftp.c (100%)
rename {clients/net-snk/app/netlib => lib/libnet}/tftp.h (98%)
rename {clients/net-snk/app/netlib => lib/libnet}/udp.c (80%)
rename {clients/net-snk/app/netlib => lib/libnet}/udp.h (94%)
--
1.8.3.1
More information about the SLOF
mailing list