From: Marko Ratkaj Date: Wed, 19 Sep 2018 10:47:22 +0000 (+0200) Subject: modules: leds: prepare for kernel 4.19 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=79b9687b6092159f7e060e1714401b24cd220a7f;p=openwrt%2Fstaging%2Fwigyori.git modules: leds: prepare for kernel 4.19 Location of ledtrig-netdev.ko module changed from ./drivers/leds/ to ./drivers/leds/trigger/ with kernel 4.19. With this patch we preserve compatibility with older kernels. Signed-off-by: Marko Ratkaj --- diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index 7019f04779..49daf4e6bb 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -58,7 +58,9 @@ define KernelPackage/ledtrig-netdev SUBMENU:=$(LEDS_MENU) TITLE:=LED NETDEV Trigger KCONFIG:=CONFIG_LEDS_TRIGGER_NETDEV - FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko + FILES:= \ + $(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko@lt4.19 \ + $(LINUX_DIR)/drivers/leds/trigger/ledtrig-netdev.ko@ge4.19 AUTOLOAD:=$(call AutoLoad,50,ledtrig-netdev) endef