summaryrefslogtreecommitdiffstats
path: root/net/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-17 14:52:00 -0700
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:32:47 -0600
commitdb9391e165dd0bb94caa246d5ade756b491b09d4 (patch)
tree75712e2988442da3ed9e2430f79db3d55a05c19d /net/Makefile
parent8607a6bf753df210f8873994294c13885f746337 (diff)
downloadtalos-obmc-uboot-db9391e165dd0bb94caa246d5ade756b491b09d4.tar.gz
talos-obmc-uboot-db9391e165dd0bb94caa246d5ade756b491b09d4.zip
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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net/Makefile')
-rw-r--r--net/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index b3a22c2e5b..943de145d2 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
OpenPOWER on IntegriCloud