From db9391e165dd0bb94caa246d5ade756b491b09d4 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 17 Jan 2016 14:52:00 -0700 Subject: net: Move driver-model code into its own file Every other uclass is in its own file. Create a new eth-uclass.c file and move the driver-model code into it, so that networking is consistent. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Acked-by: Joe Hershberger --- net/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net/Makefile') diff --git a/net/Makefile b/net/Makefile index b3a22c2..943de14 100644 --- a/net/Makefile +++ b/net/Makefile @@ -12,7 +12,11 @@ obj-$(CONFIG_CMD_NET) += arp.o obj-$(CONFIG_CMD_NET) += bootp.o obj-$(CONFIG_CMD_CDP) += cdp.o obj-$(CONFIG_CMD_DNS) += dns.o +ifdef CONFIG_DM_ETH +obj-$(CONFIG_CMD_NET) += eth-uclass.o +else obj-$(CONFIG_CMD_NET) += eth.o +endif obj-$(CONFIG_CMD_NET) += eth_common.o obj-$(CONFIG_CMD_LINK_LOCAL) += link_local.o obj-$(CONFIG_CMD_NET) += net.o -- cgit v1.1