drivers/usb/core/Makefile

Source file repositories/reference/linux-study-clean/drivers/usb/core/Makefile

File Facts

System
Linux kernel
Corpus path
drivers/usb/core/Makefile
Extension
[no extension]
Size
725 bytes
Lines
26
Domain
Driver Families
Bucket
drivers/usb
Inferred role
Driver Families: build/configuration rule
Status
atlas-only

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0
#
# Makefile for USB Core files and filesystem
#

# define_trace.h needs to know how to find our header
CFLAGS_trace.o                  := -I$(src)

usbcore-y := usb.o hub.o hcd.o urb.o message.o driver.o
usbcore-y += config.o file.o buffer.o sysfs.o endpoint.o
usbcore-y += devio.o notify.o generic.o quirks.o devices.o
usbcore-y += phy.o port.o trace.o

usbcore-$(CONFIG_OF)		+= of.o
usbcore-$(CONFIG_USB_XHCI_SIDEBAND)	+= offload.o
usbcore-$(CONFIG_USB_PCI)		+= hcd-pci.o
usbcore-$(CONFIG_ACPI)		+= usb-acpi.o

ifdef CONFIG_USB_ONBOARD_DEV
usbcore-y			+= ../misc/onboard_usb_dev_pdevs.o
endif

obj-$(CONFIG_USB)		+= usbcore.o

obj-$(CONFIG_USB_LEDS_TRIGGER_USBPORT)	+= ledtrig-usbport.o

Annotation

Implementation Notes