From 10ec966f7ba7471a8af437c317cdcc5ef8865e8d Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Thu, 18 Oct 2018 11:30:27 +0200 Subject: gemini: Break out USB to packages This creates a new kernel package for the fotg210 host controller and uses that with the gemini to shrink the kernel. The SQ201 needs the USB2 PCI package as well. The build system required me to make kernel_oldconfig beofore it would build without errors so some minor unrelated Kconfig entries are changed. Signed-off-by: Linus Walleij --- package/kernel/linux/modules/usb.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'package/kernel/linux') diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index 8a4915712b..61a876b4d9 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -318,6 +318,17 @@ define KernelPackage/usb-bcma endef $(eval $(call KernelPackage,usb-bcma)) +define KernelPackage/usb-fotg210 + TITLE:=Support for FOTG210 USB host controllers + DEPENDS:=@USB_SUPPORT @TARGET_gemini + KCONFIG:=CONFIG_USB_FOTG210_HCD + FILES:= \ + $(if $(CONFIG_USB_FOTG210_HCD),$(LINUX_DIR)/drivers/usb/host/fotg210-hcd.ko) + AUTOLOAD:=$(call AutoLoad,50,fotg210-hcd,1) + $(call AddDepends/usb) +endef +$(eval $(call KernelPackage,usb-fotg210)) + define KernelPackage/usb-ssb TITLE:=Support for SSB USB controllers DEPENDS:=@USB_SUPPORT @TARGET_brcm47xx -- cgit v1.2.3