kernel: fix build of kmod-dwc2
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 21 Nov 2015 17:36:31 +0000 (17:36 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 21 Nov 2015 17:36:31 +0000 (17:36 +0000)
dwc2_platform.koi is included in dwc2.ko with kernel 4.3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 47550

package/kernel/linux/modules/usb.mk

index 487a17de109771aad6b3319242bda279649b6297..d47c552f5f24955dfbf4deffd3c3a38252b107d6 100644 (file)
@@ -486,8 +486,10 @@ define KernelPackage/usb-dwc2
        CONFIG_USB_DWC2_TRACK_MISSED_SOFS=n \
        CONFIG_USB_DWC2_DEBUG_PERIODIC=n
   FILES:= \
-       $(LINUX_DIR)/drivers/usb/dwc2/dwc2.ko \
-       $(LINUX_DIR)/drivers/usb/dwc2/dwc2_platform.ko
+       $(LINUX_DIR)/drivers/usb/dwc2/dwc2.ko
+  ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/dwc2/dwc2_platform.ko),)
+    FILES+=$(LINUX_DIR)/drivers/usb/dwc2/dwc2_platform.ko
+  endif
   AUTOLOAD:=$(call AutoLoad,54,dwc2 dwc2_platform,1)
   $(call AddDepends/usb)
 endef