SUPPORTED_CARDS = pip pccan smartcan nsi cc_can104 \
pc_i03 pcm3680 aim104 m437 pcccan ssv \
- bfadcan pikronisa kv_pcican msmcan virtual template \
- unican unican_cl2 ems_cpcpci adlink7841 oscar
+ bfadcan gensja1000mm gensja1000io kv_pcican msmcan virtual template \
+ unican unican_cl2 ems_cpcpci adlink7841 oscar \
+ pcan_pci esdpci200
# hms30c7202_can c_can c_can_irq tscan1
# pcan_dongle
-#SUPPORTED_CARDS = pcm3680 bfadcan pikronisa template
+#SUPPORTED_CARDS = pcm3680 bfadcan template
#SUPPORTED_CARDS = virtual
KERNEL_VERSION=$(shell grep UTS_RELEASE ${KERNEL_LOCATION}/include/linux/utsrelease.h | \
sed 's/[^"]*"\(.*\)\{1\}"/\1/')
endif
+ifeq ($(KERNEL_VERSION),)
+KERNEL_VERSION=$(shell grep UTS_RELEASE ${KERNEL_LOCATION}/include/generated/utsrelease.h | \
+ sed 's/[^"]*"\(.*\)\{1\}"/\1/')
+endif
#$(warning KERNEL_VERSION = $(KERNEL_VERSION))
# Target object file if any
# this must be undefined for 2.5.xx kernels
ifndef KERNEL_MODULE_V26
-O_TARGET = can.o
+O_TARGET = lincan.o
endif
# Regular object files
O_OBJS += $(SUPPORTED_CARDS:%=%.o)
EXTRA_CFLAGS +=
# Linux 2.4.2 and newer build system needs next
-can-objs = $(O_OBJS)
+lincan-objs = $(O_OBJS)
+ifndef KERNEL_MODULE_V26
obj-y = $(O_OBJS)
-obj-m = can.o
+endif
+obj-m = lincan.o
ifndef KERNEL_MODULE_V26
FINAL_MODULE_OBJS=$(obj-m)
echo Linux kernel version $(KERNEL_VERSION)
echo Linux kernel sources $(KERNEL_LOCATION)
echo Module target $(obj-m)
- echo Module objects $(can-objs)
- DIR=`pwd`; (cd $(KERNEL_LOCATION); make SUBDIRS=$$DIR modules)
+ echo Module objects $(lincan-objs)
+ DIR=`pwd`; (cd $(KERNEL_LOCATION); make M=$$DIR SUBDIRS=$$DIR modules)
make_this_module_dep:
DIR=`pwd`; (cd $(KERNEL_LOCATION); make SUBDIRS=$$DIR dep)