kernel: kmod-can-flexcan: Fix flexcan.ko location
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 14 Mar 2024 19:22:59 +0000 (20:22 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 14 Mar 2024 19:53:34 +0000 (20:53 +0100)
The flexcan.ko file was moved in upstream Linux:
https://git.kernel.org/linus/bfd00e021cf162049946a9e0047b0997d2b35fec
This fixes the build with kernel >= 5.17. This module was never build
with kernel 6.1 before.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/can.mk

index e6c5db7135dde7db96531f675910fece0b2437f4..2175d0d5655846d643a2bb5d74816d20f37963eb 100644 (file)
@@ -119,7 +119,9 @@ $(eval $(call KernelPackage,can-c-can-platform))
 define KernelPackage/can-flexcan
   TITLE:=Support for Freescale FLEXCAN based chips
   KCONFIG:=CONFIG_CAN_FLEXCAN
-  FILES:=$(LINUX_DIR)/drivers/net/can/flexcan.ko
+  FILES:= \
+       $(LINUX_DIR)/drivers/net/can/flexcan.ko@lt5.17 \
+       $(LINUX_DIR)/drivers/net/can/flexcan/flexcan.ko@ge5.17
   AUTOLOAD:=$(call AutoProbe,flexcan)
   $(call AddDepends/can,@TARGET_imx)
 endef