Initial addition of bbswitch (WIP!)

This commit is contained in:
Lekensteyn
2011-11-01 20:01:12 +01:00
commit 82cb834240
2 changed files with 208 additions and 0 deletions

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
obj-m := bbswitch.o
KVERSION := $(shell uname -r)
KDIR := /lib/modules/$(KVERSION)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
load:
-/sbin/rmmod bbswitch
/sbin/insmod bbswitch.ko