[openwrt/openwrt] kernel: kmod-can-flexcan: Fix flexcan.ko location
LEDE Commits
lede-commits at lists.infradead.org
Thu Mar 14 13:04:01 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/d249635c5b6ef1565e15672c372e27980a892180
commit d249635c5b6ef1565e15672c372e27980a892180
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Thu Mar 14 20:22:59 2024 +0100
kernel: kmod-can-flexcan: Fix flexcan.ko location
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 at hauke-m.de>
---
package/kernel/linux/modules/can.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/kernel/linux/modules/can.mk b/package/kernel/linux/modules/can.mk
index e6c5db7135..2175d0d565 100644
--- a/package/kernel/linux/modules/can.mk
+++ b/package/kernel/linux/modules/can.mk
@@ -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 at lt5.17 \
+ $(LINUX_DIR)/drivers/net/can/flexcan/flexcan.ko at ge5.17
AUTOLOAD:=$(call AutoProbe,flexcan)
$(call AddDepends/can, at TARGET_imx)
endef
More information about the lede-commits
mailing list