Add support up to 2.6.31
[bcu1driver.git] / Makefile
blobfab63637ea97cf0b4453995f0208afd730291ff2
1 obj-m := eib-pei16.o eib-common.o eib-8250.o
3 KERNELDIR := /lib/modules/$(shell uname -r)/build
4 PWD := $(shell pwd)
6 all default:
7 $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules
9 clean:
10 rm -f *.o *.ko *.mod.c *~
12 insert : all
13 sudo rmmod eib_pei16.ko || echo OK
14 sudo rmmod eib_8250 || echo OK
15 sudo rmmod eib_common || echo OK
16 sudo insmod eib-common.ko
17 sudo insmod eib-8250.ko
18 sudo insmod eib-pei16.ko
20 .PHONY: clean all default insert