summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2016-04-17 01:19:01 +0100
committerBen Hutchings <ben@decadent.org.uk>2016-04-17 01:36:52 +0100
commit7a820e186ed1f55b719618595fba0fdb15a846f1 (patch)
treec4a77be46f87a61fea8d6a379f022a8fa10fa718
parenteff1806334d2b3b901ffae608c1dd10fe7c388e4 (diff)
auto_add_modules: Include most USB host drivers
Instead of trying to list all common USB host drivers, include them all by default; exclude the same few that are currently excluded from usb-modules-*.udeb. Also include extcon-usb-gpio which was recently added to usb-modules.udeb on armhf. Closes: #762634 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--hook-functions16
1 files changed, 14 insertions, 2 deletions
diff --git a/hook-functions b/hook-functions
index 33c81da..570030e 100644
--- a/hook-functions
+++ b/hook-functions
@@ -499,14 +499,26 @@ auto_add_modules()
for arg in "$@" ; do
case "$arg" in
base)
- modules="$modules ehci-pci ehci-orion ehci-hcd ohci-hcd ohci-pci uhci-hcd usbhid"
- modules="$modules xhci xhci-pci xhci-hcd"
modules="$modules btrfs ext2 ext3 ext4 ext4dev "
modules="$modules isofs jfs reiserfs udf xfs"
modules="$modules nfs nfsv2 nfsv3 nfsv4"
modules="$modules af_packet atkbd i8042 psmouse"
modules="$modules virtio_pci virtio_mmio"
+ # Include most USB host and dual-role drivers
+ copy_modules_dir kernel/drivers/usb/host \
+ hwa-hc.ko sl811_cs.ko sl811-hcd.ko \
+ u132-hcd.ko whci-hcd.ko
+ copy_modules_dir kernel/drivers/usb/c67x00
+ copy_modules_dir kernel/drivers/usb/chipidea
+ copy_modules_dir kernel/drivers/usb/dwc2
+ copy_modules_dir kernel/drivers/usb/dwc3
+ copy_modules_dir kernel/drivers/usb/isp1760
+ copy_modules_dir kernel/drivers/usb/musb
+ copy_modules_dir kernel/drivers/usb/renesas_usbhs
+ # and any extcon drivers for USB
+ modules="$modules extcon-usb-gpio"
+
# Include all HID drivers unless we're sure they
# don't support keyboards. hid-*ff covers various
# game controllers with force feedback.