xref: /openbmc/u-boot/net/Makefile (revision a3b36c84)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8#ccflags-y += -DDEBUG
9
10obj-y += checksum.o
11obj-$(CONFIG_CMD_NET)  += arp.o
12obj-$(CONFIG_CMD_NET)  += bootp.o
13obj-$(CONFIG_CMD_CDP)  += cdp.o
14obj-$(CONFIG_CMD_DNS)  += dns.o
15ifdef CONFIG_DM_ETH
16obj-$(CONFIG_CMD_NET)  += eth-uclass.o
17else
18obj-$(CONFIG_CMD_NET)  += eth_legacy.o
19endif
20obj-$(CONFIG_CMD_NET)  += eth_common.o
21obj-$(CONFIG_CMD_LINK_LOCAL) += link_local.o
22obj-$(CONFIG_CMD_NET)  += net.o
23obj-$(CONFIG_CMD_NFS)  += nfs.o
24obj-$(CONFIG_CMD_PING) += ping.o
25obj-$(CONFIG_CMD_RARP) += rarp.o
26obj-$(CONFIG_CMD_SNTP) += sntp.o
27obj-$(CONFIG_CMD_NET)  += tftp.o
28
29# Disable this warning as it is triggered by:
30# sprintf(buf, index ? "foo%d" : "foo", index)
31# and this is intentional usage.
32CFLAGS_eth_common.o += -Wno-format-extra-args
33