kernel: add can.ko to the kmod-can package.
authorFelix Fietkau <nbd@openwrt.org>
Fri, 21 Mar 2014 15:54:41 +0000 (15:54 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 21 Mar 2014 15:54:41 +0000 (15:54 +0000)
Build all of the can support as modules, otherwise the kernel image is
changed when a can kernel package is selected, because the can protocol
is then built in into the kernel image.

Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
SVN-Revision: 39989

package/kernel/linux/modules/can.mk

index 39c1c969adc4846f3fe1123b73672a0f4532f2a2..ab7fcfa53a3fa20d719c3290cf292f909d12436d 100644 (file)
@@ -11,7 +11,7 @@ define KernelPackage/can
   SUBMENU:=$(CAN_MENU)
   TITLE:=CAN bus support
   KCONFIG:=\
-       CONFIG_CAN=y \
+       CONFIG_CAN=m \
        CONFIG_CAN_DEV \
        CONFIG_CAN_CALC_BITTIMING=y \
        CONFIG_CAN_LEDS=y \
@@ -29,8 +29,9 @@ define KernelPackage/can
        CONFIG_CAN_SOFTING=n \
        CONFIG_NET_EMATCH_CANID=n \
        CONFIG_CAN_DEBUG_DEVICES=n
-  FILES:=$(LINUX_DIR)/drivers/net/can/can-dev.ko
-  AUTOLOAD:=$(call AutoProbe,can-dev)
+  FILES:=$(LINUX_DIR)/drivers/net/can/can-dev.ko \
+        $(LINUX_DIR)/net/can/can.ko
+  AUTOLOAD:=$(call AutoProbe,can can-dev)
 endef
 
 define KernelPackage/can/description