#KERNEL_LOCATION=/usr/src/linux-2.2.19
#KERNEL_LOCATION=/usr/src/linux-2.2.22
#KERNEL_LOCATION=/usr/src/linux-2.6.0
+#KERNEL_LOCATION=/usr/src/linux-2.6.18-rc4/_build/arm
#KERNEL_LOCATION=/home/cvs/ocera/ocera-build/kernel/linux
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
-# hms30c7202_can c_can c_can_irq
+ 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 awk -F\" '/REL/ {print $$2}' \
$(KERNEL_LOCATION)/include/linux/version.h | awk -F\- '{print $$1}')
+ifeq ($(KERNEL_VERSION),)
+KERNEL_VERSION=$(shell grep UTS_RELEASE ${KERNEL_LOCATION}/include/linux/utsrelease.h | \
+ sed 's/[^"]*"\(.*\)\{1\}"/\1/')
+endif
+
+#$(warning KERNEL_VERSION = $(KERNEL_VERSION))
+
PROC_FS := $(shell awk -F\ '/PROC_FS/ {print $$3}' \
$(KERNEL_LOCATION)/include/linux/autoconf.h)