]> rtime.felk.cvut.cz Git - mf6xx.git/blob - src/uio/mf624/kernel/Makefile
Added udev rules for sipler access from userspace. Makefile now has 'install' and...
[mf6xx.git] / src / uio / mf624 / kernel / Makefile
1 MY_KERNEL_VERSION=$(shell uname -r)
2 MY_KERNEL_BUILD=/lib/modules/$(MY_KERNEL_VERSION)/build
3
4 my_all:
5         make -C $(MY_KERNEL_BUILD) M=`pwd` modules
6
7 obj-m := mf624.o
8
9 clean:
10         rm *.ko *.o
11
12 install:
13         cp mf624.ko /lib/modules/`uname -r`/kernel/drivers/uio
14         depmod -A
15         groupadd -f iocard
16         usermod -a -G iocard $(USER)
17         cp udev_rules/uio.rules /etc/udev/rules.d
18         udevadm control --reload-rules #FIXME Debian only?      
19
20 load:
21         modprobe mf624
22