]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lwip: move net/lwip/dns.c to cmd/lwip
authorJerome Forissier <jerome.forissier@linaro.org>
Wed, 25 Jun 2025 13:19:10 +0000 (15:19 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Tue, 8 Jul 2025 09:07:37 +0000 (11:07 +0200)
Prepare to split the dns 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@linaro.org>
MAINTAINERS
cmd/Makefile
cmd/lwip/Makefile [new file with mode: 0644]
cmd/lwip/dns.c [moved from net/lwip/dns.c with 100% similarity]
net/lwip/Makefile

index b4d5df77ff6a9bc0c388465e46fcb4f4858d6887..d5264c8f5df60561c56a46bfbabd01fbd0a29726 100644 (file)
@@ -1410,6 +1410,7 @@ F:        net/
 NETWORK (LWIP)
 M:     Jerome Forissier <jerome.forissier@linaro.org>
 S:     Maintained
+F:     cmd/lwip/
 F:     cmd/net-lwip.c
 F:     configs/qemu_arm64_lwip_defconfig
 F:     drivers/net/sandbox-lwip.c
index 80cf70b7fe8c1747db37d7cb1428863a671560b5..9c5bfc91659c9db46fbfbd44e00bc360b8b26da4 100644 (file)
@@ -134,6 +134,7 @@ ifdef CONFIG_NET
 obj-$(CONFIG_CMD_NET) += net.o net-common.o
 else ifdef CONFIG_NET_LWIP
 obj-$(CONFIG_CMD_NET) += net-lwip.o net-common.o
+obj-y += lwip/
 endif
 obj-$(CONFIG_ENV_SUPPORT) += nvedit.o
 obj-$(CONFIG_CMD_NVEDIT_EFI) += nvedit_efi.o
diff --git a/cmd/lwip/Makefile b/cmd/lwip/Makefile
new file mode 100644 (file)
index 0000000..6c4ab58
--- /dev/null
@@ -0,0 +1 @@
+obj-$(CONFIG_CMD_DNS) += dns.o
similarity index 100%
rename from net/lwip/dns.c
rename to cmd/lwip/dns.c
index 5df222589b86b73c77cf825c3542c46e4bd97de3..255c7d018b0a39cc615f2ad839c4469cb1b051b0 100644 (file)
@@ -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_DNS) += dns.o
 obj-$(CONFIG_CMD_PING) += ping.o
 obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o
 obj-$(CONFIG_WGET) += wget.o