X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=net%2FMakefile;h=d1e8e01f62fbfc9f114898d6c84e3a41bf5bac1c;hb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;hp=31aadc2ffc11d5882047a789e3f88e66a7aac698;hpb=c0bb110b695130866838518e680bdd5473e47928;p=platform%2Fkernel%2Fu-boot.git diff --git a/net/Makefile b/net/Makefile index 31aadc2..d1e8e01 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1,21 +1,30 @@ +# SPDX-License-Identifier: GPL-2.0+ # # (C) Copyright 2000-2006 # Wolfgang Denk, DENX Software Engineering, wd@denx.de. -# -# SPDX-License-Identifier: GPL-2.0+ -# -# CFLAGS += -DDEBUG +#ccflags-y += -DDEBUG -obj-$(CONFIG_CMD_NET) += arp.o -obj-$(CONFIG_CMD_NET) += bootp.o +obj-y += checksum.o +obj-$(CONFIG_NET) += arp.o +obj-$(CONFIG_CMD_BOOTP) += bootp.o obj-$(CONFIG_CMD_CDP) += cdp.o obj-$(CONFIG_CMD_DNS) += dns.o -obj-$(CONFIG_CMD_NET) += eth.o +ifdef CONFIG_DM_ETH +obj-$(CONFIG_NET) += eth-uclass.o +else +obj-$(CONFIG_NET) += eth_legacy.o +endif +obj-$(CONFIG_NET) += eth_common.o obj-$(CONFIG_CMD_LINK_LOCAL) += link_local.o -obj-$(CONFIG_CMD_NET) += net.o +obj-$(CONFIG_NET) += net.o obj-$(CONFIG_CMD_NFS) += nfs.o obj-$(CONFIG_CMD_PING) += ping.o obj-$(CONFIG_CMD_RARP) += rarp.o obj-$(CONFIG_CMD_SNTP) += sntp.o -obj-$(CONFIG_CMD_NET) += tftp.o +obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o + +# Disable this warning as it is triggered by: +# sprintf(buf, index ? "foo%d" : "foo", index) +# and this is intentional usage. +CFLAGS_eth_common.o += -Wno-format-extra-args