mbox series

[PATCHv5,00/13] net/lwip: add lwip library for the network stack

Message ID 20230802140658.10319-1-maxim.uvarov@linaro.org
Headers show
Series net/lwip: add lwip library for the network stack | expand

Message

Maxim Uvarov Aug. 2, 2023, 2:06 p.m. UTC
changelog:
	v5: - fixed Iliases comments and split big patch on the small
		ones.
	    You also need to issue command:
    	git subtree add --prefix lib/lwip/lwip-external https://git.savannah.nongnu.org/git/lwip.git master --squash
	Which will create merge commit of lwip library placing sources
	into lib/lwip/lwip-external directory. I do not send it a patch
	due to 1. merges are not friendly with git format-patch and 2.
	the source code of lwip is 78kb. 
	v4: - tested with tests/py/ did some minor fixes (out of tree
		build, variables set after downloads).
	    - accounted review comments for documentation.
	    - implemented dns command
            - corrected wget command to not use serverip variable and use just
		url string.
	v3: - use lwip commands for ping,tftp,wget,dhcp if this patch
	      applied. Drop CONFIG_LIB_LWIP_REPLACE_<COMMAND> option.
	    - docs: use rst variant and drop references to RFC.

Maxim Uvarov (13):
  net/lwip: add doc/develop/net_lwip.rst
  net/lwip: integrate lwip library
  net/lwip: implement dns cmd
  net/lwip: implement dhcp cmd
  net/lwip: implement tftp cmd
  net/lwip: implement wget cmd
  net/lwip: implement ping cmd
  net/lwip: add lwip configuration configuration
  net/lwip: implement lwip port to u-boot
  net/lwip: update .gitignore with lwip
  net/lwip: connection between cmd and lwip apps
  net/lwip: replace original net commands with lwip
  net/lwip: drop old net/wget

 .gitignore                            |   9 +
 boot/bootmeth_efi.c                   |   2 +-
 boot/bootmeth_pxe.c                   |   2 +-
 cmd/net.c                             |  86 +----
 cmd/pxe.c                             |   2 +-
 doc/develop/index.rst                 |   1 +
 doc/develop/net_lwip.rst              |  55 ++++
 include/net.h                         |   8 +-
 include/net/lwip.h                    |   5 +
 include/net/wget.h                    |  22 --
 lib/Kconfig                           |   2 +
 lib/Makefile                          |   1 +
 lib/lwip/Kconfig                      |  67 ++++
 lib/lwip/Makefile                     |  74 +++++
 lib/lwip/apps/dhcp/lwip-dhcp.c        |  53 ++++
 lib/lwip/apps/dns/lwip-dns.c          |  46 +++
 lib/lwip/apps/dns/lwip-dns.h          |   3 +
 lib/lwip/apps/http/Makefile           |  13 +
 lib/lwip/apps/http/lwip-wget.c        | 130 ++++++++
 lib/lwip/apps/ping/Makefile           |  11 +
 lib/lwip/apps/ping/lwip_ping.c        |  37 +++
 lib/lwip/apps/ping/lwip_ping.h        |  24 ++
 lib/lwip/apps/ping/ping.h             |  35 ++
 lib/lwip/apps/tftp/Makefile           |  16 +
 lib/lwip/apps/tftp/lwip-tftp.c        | 124 ++++++++
 lib/lwip/cmd-lwip.c                   | 308 ++++++++++++++++++
 lib/lwip/lwipopts.h                   | 203 ++++++++++++
 lib/lwip/port/if.c                    | 256 +++++++++++++++
 lib/lwip/port/include/arch/cc.h       |  46 +++
 lib/lwip/port/include/arch/sys_arch.h |  59 ++++
 lib/lwip/port/include/limits.h        |   0
 lib/lwip/port/sys-arch.c              |  20 ++
 lib/lwip/ulwip.h                      |   9 +
 net/Kconfig                           |   1 +
 net/Makefile                          |   1 -
 net/net.c                             |  30 +-
 net/wget.c                            | 440 --------------------------
 37 files changed, 1649 insertions(+), 552 deletions(-)
 create mode 100644 doc/develop/net_lwip.rst
 create mode 100644 include/net/lwip.h
 delete mode 100644 include/net/wget.h
 create mode 100644 lib/lwip/Kconfig
 create mode 100644 lib/lwip/Makefile
 create mode 100644 lib/lwip/apps/dhcp/lwip-dhcp.c
 create mode 100644 lib/lwip/apps/dns/lwip-dns.c
 create mode 100644 lib/lwip/apps/dns/lwip-dns.h
 create mode 100644 lib/lwip/apps/http/Makefile
 create mode 100644 lib/lwip/apps/http/lwip-wget.c
 create mode 100644 lib/lwip/apps/ping/Makefile
 create mode 100644 lib/lwip/apps/ping/lwip_ping.c
 create mode 100644 lib/lwip/apps/ping/lwip_ping.h
 create mode 100644 lib/lwip/apps/ping/ping.h
 create mode 100644 lib/lwip/apps/tftp/Makefile
 create mode 100644 lib/lwip/apps/tftp/lwip-tftp.c
 create mode 100644 lib/lwip/cmd-lwip.c
 create mode 100644 lib/lwip/lwipopts.h
 create mode 100644 lib/lwip/port/if.c
 create mode 100644 lib/lwip/port/include/arch/cc.h
 create mode 100644 lib/lwip/port/include/arch/sys_arch.h
 create mode 100644 lib/lwip/port/include/limits.h
 create mode 100644 lib/lwip/port/sys-arch.c
 create mode 100644 lib/lwip/ulwip.h
 delete mode 100644 net/wget.c