[PATCH v3 03/13] lwip: move net/lwip/ping.c to cmd/lwip
Jerome Forissier
jerome.forissier at linaro.org
Tue Jun 17 12:03:53 CEST 2025
Prepare to split the ping command from cmd/net-lwip.c by moving the
implementation from net/lwip/dns.c to cmd/lwip.
Signed-off-by: Jerome Forissier <jerome.forissier at linaro.org>
---
Changes in v3:
- Move this patch before "lwip: split cmd/net-lwip.c into one file per
command". Drop a change recommended by checkpatch (uint16_t -> u16)
which would better be submitted separately, since the purpose if this
patch is to move code around, not to modify it.
Changes in v2:
- New patch
cmd/lwip/Makefile | 1 +
{net => cmd}/lwip/ping.c | 0
net/lwip/Makefile | 1 -
3 files changed, 1 insertion(+), 1 deletion(-)
rename {net => cmd}/lwip/ping.c (100%)
diff --git a/cmd/lwip/Makefile b/cmd/lwip/Makefile
index 6c4ab58d06b..da79b64b5c2 100644
--- a/cmd/lwip/Makefile
+++ b/cmd/lwip/Makefile
@@ -1 +1,2 @@
obj-$(CONFIG_CMD_DNS) += dns.o
+obj-$(CONFIG_CMD_PING) += ping.o
diff --git a/net/lwip/ping.c b/cmd/lwip/ping.c
similarity index 100%
rename from net/lwip/ping.c
rename to cmd/lwip/ping.c
diff --git a/net/lwip/Makefile b/net/lwip/Makefile
index 255c7d018b0..97299d9b542 100644
--- a/net/lwip/Makefile
+++ b/net/lwip/Makefile
@@ -2,7 +2,6 @@ ccflags-y += -I$(srctree)/lib/lwip/lwip/src/include -I$(srctree)/lib/lwip/u-boot
obj-$(CONFIG_$(PHASE_)DM_ETH) += net-lwip.o
obj-$(CONFIG_CMD_DHCP) += dhcp.o
-obj-$(CONFIG_CMD_PING) += ping.o
obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o
obj-$(CONFIG_WGET) += wget.o
--
2.43.0
More information about the U-Boot
mailing list