diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-10 13:12:31 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-10 13:44:26 +0100 |
commit | 7ff7be96dd3491a4762a33c5b5062e5680a99849 (patch) | |
tree | 971de94729c3ad6afe483729b88cc9225451c7ec /package | |
parent | 10f7a8d6482e4f8b7704a1a6f313bf30aa8d510e (diff) | |
download | upstream-7ff7be96dd3491a4762a33c5b5062e5680a99849.tar.gz upstream-7ff7be96dd3491a4762a33c5b5062e5680a99849.tar.bz2 upstream-7ff7be96dd3491a4762a33c5b5062e5680a99849.zip |
omap: build various core drivers into the kernel instead of packaging them
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/linux/modules/crypto.mk | 30 | ||||
-rw-r--r-- | package/kernel/linux/modules/other.mk | 4 | ||||
-rw-r--r-- | package/kernel/linux/modules/spi.mk | 2 | ||||
-rw-r--r-- | package/kernel/linux/modules/usb.mk | 134 |
4 files changed, 5 insertions, 165 deletions
diff --git a/package/kernel/linux/modules/crypto.mk b/package/kernel/linux/modules/crypto.mk index abbd5afd66..67526024e5 100644 --- a/package/kernel/linux/modules/crypto.mk +++ b/package/kernel/linux/modules/crypto.mk @@ -240,36 +240,6 @@ endef $(eval $(call KernelPackage,crypto-hw-hifn-795x)) -define KernelPackage/crypto-hw-omap - TITLE:=TI OMAP hardware crypto modules - DEPENDS:=@TARGET_omap - KCONFIG:= \ - CONFIG_CRYPTO_HW=y \ - CONFIG_CRYPTO_DEV_OMAP_AES \ - CONFIG_CRYPTO_DEV_OMAP_DES \ - CONFIG_CRYPTO_DEV_OMAP_SHAM -ifneq ($(wildcard $(LINUX_DIR)/drivers/crypto/omap-des.ko),) - FILES:= \ - $(LINUX_DIR)/drivers/crypto/omap-aes.ko \ - $(LINUX_DIR)/drivers/crypto/omap-des.ko \ - $(LINUX_DIR)/drivers/crypto/omap-sham.ko - AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-des omap-sham) -else - FILES:= \ - $(LINUX_DIR)/drivers/crypto/omap-aes.ko \ - $(LINUX_DIR)/drivers/crypto/omap-sham.ko - AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-sham) -endif - $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash) -endef - -define KernelPackage/crypto-hw-omap/description - Kernel support for the TI OMAP HW crypto engine. -endef - -$(eval $(call KernelPackage,crypto-hw-omap)) - - define KernelPackage/crypto-authenc TITLE:=Combined mode wrapper for IPsec DEPENDS:=+kmod-crypto-manager +LINUX_4_4:kmod-crypto-null diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 81c04705de..adf3cc4069 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -485,7 +485,7 @@ $(eval $(call KernelPackage,bcma)) define KernelPackage/wdt-omap SUBMENU:=$(OTHER_MENU) TITLE:=OMAP Watchdog timer - DEPENDS:=@(TARGET_omap24xx||TARGET_omap35xx) + DEPENDS:=@TARGET_omap24xx KCONFIG:=CONFIG_OMAP_WATCHDOG FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/omap_wdt.ko AUTOLOAD:=$(call AutoLoad,50,omap_wdt,1) @@ -849,7 +849,7 @@ define KernelPackage/random-omap TITLE:=Hardware Random Number Generator OMAP support KCONFIG:=CONFIG_HW_RANDOM_OMAP FILES:=$(LINUX_DIR)/drivers/char/hw_random/omap-rng.ko - DEPENDS:=@(TARGET_omap24xx||TARGET_omap) +kmod-random-core + DEPENDS:=@TARGET_omap24xx +kmod-random-core AUTOLOAD:=$(call AutoProbe,random-omap) endef diff --git a/package/kernel/linux/modules/spi.mk b/package/kernel/linux/modules/spi.mk index b16e26ef04..0b535a8cb4 100644 --- a/package/kernel/linux/modules/spi.mk +++ b/package/kernel/linux/modules/spi.mk @@ -93,7 +93,7 @@ $(eval $(call KernelPackage,spi-dev)) define KernelPackage/spi-omap-24xx SUBMENU:=$(SPI_MENU) TITLE:=SPI omap 24xx - DEPENDS:=@(TARGET_omap24xx||TARGET_omap) + DEPENDS:=@TARGET_omap24xx KCONFIG:=CONFIG_SPI_OMAP24XX \ CONFIG_SPI=y \ CONFIG_SPI_MASTER=y diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index c226ae8b85..f0d42a6751 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -67,8 +67,7 @@ define KernelPackage/usb-musb-hdrc CONFIG_USB_MUSB_HOST=n \ CONFIG_USB_MUSB_DEBUG=y DEPENDS:= \ - @(TARGET_omap||TARGET_omap24xx) +kmod-usb-gadget \ - +TARGET_omap24xx:kmod-usb-musb-tusb6010 + @TARGET_omap24xx +kmod-usb-gadget +kmod-usb-musb-tusb6010 FILES:=$(LINUX_DIR)/drivers/usb/musb/musb_hdrc.ko AUTOLOAD:=$(call AutoLoad,46,musb_hdrc) $(call AddDepends/usb) @@ -81,29 +80,6 @@ endef $(eval $(call KernelPackage,usb-musb-hdrc)) -define KernelPackage/usb-musb-platformglue - TITLE:=MUSB platform glue layer - KCONFIG:= \ - CONFIG_USB_MUSB_TUSB6010=n \ - CONFIG_USB_MUSB_OMAP2PLUS=n \ - CONFIG_USB_MUSB_AM35X=n \ - CONFIG_USB_MUSB_DSPS \ - CONFIG_USB_MUSB_UX500=n - DEPENDS:=@TARGET_omap +kmod-usb-phy-nop +kmod-usb-musb-hdrc +kmod-usb-phy-am335x - FILES:= \ - $(LINUX_DIR)/drivers/usb/musb/musb_dsps.ko \ - $(LINUX_DIR)/drivers/usb/musb/musb_am335x.ko - AUTOLOAD:=$(call AutoLoad,45,phy-omap-control musb_dsps musb_am335x) - $(call AddDepends/usb) -endef - -define KernelPackage/usb-musb-platformglue/description - MUSB platform glue modules -endef - -$(eval $(call KernelPackage,usb-musb-platformglue)) - - define KernelPackage/usb-musb-tusb6010 TITLE:=Support for TUSB 6010 KCONFIG:=CONFIG_USB_MUSB_TUSB6010 @@ -134,94 +110,6 @@ endef $(eval $(call KernelPackage,usb-phy-nop)) -define KernelPackage/usb-phy-am335x - TITLE:=Support for AM335x USB PHY - KCONFIG:= \ - CONFIG_AM335X_PHY_USB \ - CONFIG_AM335X_CONTROL_USB - DEPENDS:=@TARGET_omap +kmod-usb-phy-nop - FILES:= \ - $(LINUX_DIR)/drivers/usb/phy/phy-am335x.ko \ - $(LINUX_DIR)/drivers/usb/phy/phy-am335x-control.ko - AUTOLOAD:=$(call AutoLoad,44,phy-am335x) - $(call AddDepends/usb) -endef - -define KernelPackage/usb-phy-am335x/description - Support for AM335x USB PHY -endef - -$(eval $(call KernelPackage,usb-phy-am335x)) - - -define KernelPackage/usb-phy-omap-usb2 - TITLE:=Support for OMAP2 USB PHY - KCONFIG:= \ - CONFIG_OMAP_USB2 \ - CONFIG_OMAP_CONTROL_PHY - DEPENDS:=@TARGET_omap - FILES:= \ - $(LINUX_DIR)/drivers/phy/phy-omap-usb2.ko \ - $(LINUX_DIR)/drivers/phy/phy-omap-control.ko - AUTOLOAD:=$(call AutoLoad,45,phy-omap-control phy-omap-usb2) - $(call AddDepends/usb) -endef - -define KernelPackage/usb-phy-omap-usb2/description - Support for AM335x USB PHY -endef - -$(eval $(call KernelPackage,usb-phy-omap-usb2)) - - -define KernelPackage/usb-phy-omap-usb3 - TITLE:=Support for OMAP USB3 PHY - KCONFIG:=CONFIG_OMAP_USB3 - DEPENDS:=@TARGET_omap +kmod-usb-phy-omap-usb2 - FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-omap-usb3.ko - AUTOLOAD:=$(call AutoLoad,45,phy-omap-usb3) - $(call AddDepends/usb) -endef - -define KernelPackage/usb-phy-omap-usb3/description - Support for OMAP USB3 PHY -endef - -$(eval $(call KernelPackage,usb-phy-omap-usb3)) - - -define KernelPackage/usb-phy-twl4030 - TITLE:=Support for TWL4030 OTG PHY - KCONFIG:=CONFIG_TWL4030_USB - DEPENDS:=@TARGET_omap +kmod-usb-phy-omap-usb2 +kmod-usb-musb-hdrc - FILES:=$(LINUX_DIR)/drivers/phy/phy-twl4030-usb.ko - AUTOLOAD:=$(call AutoLoad,45,phy-twl4030-usb) - $(call AddDepends/usb) -endef - -define KernelPackage/usb-phy-twl4030/description - Support for TWL4030/TWL5030/TPS659x0 OTG PHY -endef - -$(eval $(call KernelPackage,usb-phy-twl4030)) - - -define KernelPackage/usb-phy-twl6030 - TITLE:=Support for TWL6030 OTG PHY - KCONFIG:=CONFIG_TWL6030_USB - DEPENDS:=@TARGET_omap +kmod-usb-phy-omap-usb2 +kmod-usb-musb-hdrc - FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-twl6030-usb.ko - AUTOLOAD:=$(call AutoLoad,45,phy-twl6030-usb) - $(call AddDepends/usb) -endef - -define KernelPackage/usb-phy-twl6030/description - Support for TWL6030 OTG PHY -endef - -$(eval $(call KernelPackage,usb-phy-twl6030)) - - define KernelPackage/usb-gadget TITLE:=USB Gadget support KCONFIG:=CONFIG_USB_GADGET @@ -400,23 +288,6 @@ endef $(eval $(call KernelPackage,usb-ohci-pci)) -define KernelPackage/usb2-omap - TITLE:=Support for USB2 for OMAP - DEPENDS:=@TARGET_omap +kmod-usb-phy-nop +kmod-usb-phy-am335x +kmod-usb2 - KCONFIG:=\ - CONFIG_MFD_OMAP_USB_HOST=y \ - CONFIG_USB_EHCI_HCD_OMAP - FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-omap.ko - AUTOLOAD:=$(call AutoLoad,39,ehci-omap) - $(call AddDepends/usb) -endef - -define KernelPackage/usb2-omap/description - Kernel support for OMAP USB2 (EHCI) controllers -endef - -$(eval $(call KernelPackage,usb2-omap)) - define KernelPackage/usb-bcma TITLE:=Support for BCMA USB controllers DEPENDS:=@USB_SUPPORT @TARGET_brcm47xx||TARGET_bcm53xx @@ -1568,8 +1439,7 @@ define KernelPackage/usb3 TITLE:=Support for USB3 controllers DEPENDS:= \ +TARGET_bcm53xx:kmod-usb-bcma \ - +TARGET_bcm53xx:kmod-phy-bcm-ns-usb3 \ - +TARGET_omap:kmod-usb-phy-omap-usb3 + +TARGET_bcm53xx:kmod-phy-bcm-ns-usb3 KCONFIG:= \ CONFIG_USB_XHCI_HCD \ CONFIG_USB_XHCI_PCI \ |