]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/Makefile.omk
Added initial version of MSMCAN card support into LinCAN driver.
[lincan.git] / lincan / src / Makefile.omk
index 20ab731a58296183a9a0498f6742efabe8af59be..e736d3daf4fecb2bc475fa09e9b7dcaac4bead4b 100644 (file)
@@ -1,3 +1,7 @@
+default_CONFIG = CONFIG_OC_LINCAN=y CONFIG_OC_LINCANRTL=y
+
+ifeq ($(CONFIG_OC_LINCAN),y)
+
 rtlinux_INCLUDES = -I $(srcdir)/../include
 kernel_INCLUDES = -I $(srcdir)/../include
 #kernel_INCLUDES += -DCAN_DEBUG
@@ -9,10 +13,17 @@ kernel_MODULES = lincan
 
 lincan_cards_SOURCES = pip.c pccan.c smartcan.c nsi.c cc_can104.c \
                pc_i03.c pcm3680.c aim104.c m437.c pcccan.c ssv.c \
-               bfadcan.c pikronisa.c virtual.c template.c
+               bfadcan.c pikronisa.c kv_pcican.c msmcan.c virtual.c template.c
+
+ifeq ($(CONFIG_OC_LINCANRTL),y)
+rtlinux_INCLUDES +=  -DCAN_WITH_RTL
+lincan_rtl_SOURCES = open_rtl.c close_rtl.c read_rtl.c write_rtl.c ioctl_rtl.c
+endif #CONFIG_OC_LINCANRTL
 
-lincan_SOURCES = can_queue.c can_quekern.c devcommon.c main.c modparms.c \
-               setup.c finish.c irq.c boardlist.c \
+lincan_SOURCES = can_queue.c can_quekern.c can_quertl.c main.c modparms.c \
+               devcommon.c can_devrtl.c setup.c finish.c irq.c boardlist.c \
                sja1000p.c sja1000.c i82527.c  \
-               open.c proc.c close.c write.c read.c \
-               ioctl.c select.c fasync.c proc.c $(lincan_cards_SOURCES)
+               open.c close.c read.c write.c ioctl.c select.c fasync.c \
+               proc.c ioctl_query.c $(lincan_cards_SOURCES) $(lincan_rtl_SOURCES)
+               
+endif #CONFIG_OC_LINCAN