summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches/118-mt7628-usb-phy-build.patch
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:42:26 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:42:26 +0200
commitb395e3b40e026a437b7179b78f1beddf2d02a7bc (patch)
treef3118474a7af11fffb228915dcffd7f2580d26ee /target/linux/ramips/patches/118-mt7628-usb-phy-build.patch
parente266de11dcd0b2d71c445b943bef2f50258fa314 (diff)
downloadmtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.zip
mtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.tar.gz
mtk-20170518-b395e3b40e026a437b7179b78f1beddf2d02a7bc.tar.bz2
target/linux/ramips: add all patches
Diffstat (limited to 'target/linux/ramips/patches/118-mt7628-usb-phy-build.patch')
-rwxr-xr-xtarget/linux/ramips/patches/118-mt7628-usb-phy-build.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/ramips/patches/118-mt7628-usb-phy-build.patch b/target/linux/ramips/patches/118-mt7628-usb-phy-build.patch
new file mode 100755
index 0000000..081f17b
--- /dev/null
+++ b/target/linux/ramips/patches/118-mt7628-usb-phy-build.patch
@@ -0,0 +1,28 @@
+Index: linux-3.10.14/drivers/usb/core/Makefile
+===================================================================
+--- linux-3.10.14.orig/drivers/usb/core/Makefile
++++ linux-3.10.14/drivers/usb/core/Makefile
+@@ -4,8 +4,6 @@
+
+ ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG
+
+-obj-$(CONFIG_RALINK_MT7628) += ../host/mtk-phy.o ../host/mtk-phy-7628.o ../host/mtk-phy-ahb.o
+-
+ 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
+Index: linux-3.10.14/drivers/usb/host/Makefile
+===================================================================
+--- linux-3.10.14.orig/drivers/usb/host/Makefile
++++ linux-3.10.14/drivers/usb/host/Makefile
+@@ -14,6 +14,10 @@ fhci-$(CONFIG_FHCI_DEBUG) += fhci-dbg.o
+ xhci-hcd-y := xhci.o xhci-mem.o
+ xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o
+
++ifneq ($(CONFIG_RALINK_MT7628), )
++obj-y += ../host/mtk-phy.o ../host/mtk-phy-7628.o ../host/mtk-phy-ahb.o
++endif
++
+ ifndef CONFIG_USB_MT7621_XHCI_PLATFORM
+ xhci-hcd-$(CONFIG_PCI) += xhci-pci.o
+ endif