xref: /openbmc/u-boot/net/Makefile (revision b8448051)
1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2000-2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6#ccflags-y += -DDEBUG
7
8obj-y += checksum.o
9obj-$(CONFIG_NET)      += arp.o
10obj-$(CONFIG_CMD_BOOTP) += bootp.o
11obj-$(CONFIG_CMD_CDP)  += cdp.o
12obj-$(CONFIG_CMD_DNS)  += dns.o
13ifdef CONFIG_DM_ETH
14obj-$(CONFIG_NET)      += eth-uclass.o
15else
16obj-$(CONFIG_NET)      += eth_legacy.o
17endif
18obj-$(CONFIG_NET)      += eth_common.o
19obj-$(CONFIG_CMD_LINK_LOCAL) += link_local.o
20obj-$(CONFIG_NET)      += net.o
21obj-$(CONFIG_CMD_NFS)  += nfs.o
22obj-$(CONFIG_CMD_PING) += ping.o
23obj-$(CONFIG_CMD_RARP) += rarp.o
24obj-$(CONFIG_CMD_SNTP) += sntp.o
25obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o
26obj-$(CONFIG_UDP_FUNCTION_FASTBOOT)  += fastboot.o
27obj-$(CONFIG_CMD_WOL)  += wol.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