summaryrefslogtreecommitdiffstats
path: root/drivers/usb/eth/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-02-16 11:14:33 -0800
committerRemy Bohmer <linux@bohmer.net>2011-02-19 20:32:36 +0100
commit89d48367edbc878f86db3008a4107331ef07f578 (patch)
tree808742d920445274c97d867422762b3b67cc8391 /drivers/usb/eth/Makefile
parent96820a35873b4c005f732432c6a168decc9d22b9 (diff)
downloadblackbird-obmc-uboot-89d48367edbc878f86db3008a4107331ef07f578.tar.gz
blackbird-obmc-uboot-89d48367edbc878f86db3008a4107331ef07f578.zip
Add USB host ethernet adapter support
This adds support for using USB Ethernet dongles in host mode. This is just the framework - drivers will come later. A new config option called CONFIG_USB_HOST_ETHER can be defined in board config files to switch this on. The was originally written by NVIDIA and was cleaned up for release by the Chromium authors. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/eth/Makefile')
-rw-r--r--drivers/usb/eth/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/usb/eth/Makefile b/drivers/usb/eth/Makefile
new file mode 100644
index 0000000000..a0f56765b3
--- /dev/null
+++ b/drivers/usb/eth/Makefile
@@ -0,0 +1,45 @@
+#
+# Copyright (c) 2011 The Chromium OS Authors.
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB := $(obj)libusb_eth.a
+
+# new USB host ethernet layer dependencies
+COBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o
+
+COBJS := $(COBJS-y)
+SRCS := $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+
+all: $(LIB)
+
+$(LIB): $(obj).depend $(OBJS)
+ $(AR) $(ARFLAGS) $@ $(OBJS)
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
OpenPOWER on IntegriCloud