mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 05:16:53 +07:00
2b3d942c48
Abstract the peripheral side Ethernet-over-USB link layer code from the all-in-one Ethernet gadget driver into a component that can be called by various functions, so the various flavors can be split apart and selectively reused. A notable difference from the approach taken with the serial link layer code (beyond talking to NET not TTY) is that because of the initialization requirements, this only supports one network link. (And one set of Ethernet link addresses.) That is, each configuration may have only one instance of a network function. This doesn't change behavior; the current code has that same restriction. If you want multiple logical links, that can easily be done using network layer tools. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
49 lines
1.5 KiB
Makefile
49 lines
1.5 KiB
Makefile
#
|
|
# USB peripheral controller drivers
|
|
#
|
|
ifeq ($(CONFIG_USB_GADGET_DEBUG),y)
|
|
EXTRA_CFLAGS += -DDEBUG
|
|
endif
|
|
|
|
obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o
|
|
obj-$(CONFIG_USB_NET2280) += net2280.o
|
|
obj-$(CONFIG_USB_AMD5536UDC) += amd5536udc.o
|
|
obj-$(CONFIG_USB_PXA25X) += pxa25x_udc.o
|
|
obj-$(CONFIG_USB_PXA27X) += pxa27x_udc.o
|
|
obj-$(CONFIG_USB_GOKU) += goku_udc.o
|
|
obj-$(CONFIG_USB_OMAP) += omap_udc.o
|
|
obj-$(CONFIG_USB_LH7A40X) += lh7a40x_udc.o
|
|
obj-$(CONFIG_USB_S3C2410) += s3c2410_udc.o
|
|
obj-$(CONFIG_USB_AT91) += at91_udc.o
|
|
obj-$(CONFIG_USB_ATMEL_USBA) += atmel_usba_udc.o
|
|
obj-$(CONFIG_USB_FSL_USB2) += fsl_usb2_udc.o
|
|
obj-$(CONFIG_USB_M66592) += m66592-udc.o
|
|
|
|
#
|
|
# USB gadget drivers
|
|
#
|
|
C_UTILS = composite.o usbstring.o config.o epautoconf.o
|
|
|
|
g_zero-objs := zero.o f_sourcesink.o f_loopback.o $(C_UTILS)
|
|
g_ether-objs := ether.o u_ether.o $(C_UTILS)
|
|
g_serial-objs := serial.o u_serial.o f_acm.o f_serial.o $(C_UTILS)
|
|
g_midi-objs := gmidi.o usbstring.o config.o epautoconf.o
|
|
gadgetfs-objs := inode.o
|
|
g_file_storage-objs := file_storage.o usbstring.o config.o \
|
|
epautoconf.o
|
|
g_printer-objs := printer.o usbstring.o config.o \
|
|
epautoconf.o
|
|
|
|
ifeq ($(CONFIG_USB_ETH_RNDIS),y)
|
|
g_ether-objs += rndis.o
|
|
endif
|
|
|
|
obj-$(CONFIG_USB_ZERO) += g_zero.o
|
|
obj-$(CONFIG_USB_ETH) += g_ether.o
|
|
obj-$(CONFIG_USB_GADGETFS) += gadgetfs.o
|
|
obj-$(CONFIG_USB_FILE_STORAGE) += g_file_storage.o
|
|
obj-$(CONFIG_USB_G_SERIAL) += g_serial.o
|
|
obj-$(CONFIG_USB_G_PRINTER) += g_printer.o
|
|
obj-$(CONFIG_USB_MIDI_GADGET) += g_midi.o
|
|
|