You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
397 B
Makefile
23 lines
397 B
Makefile
modname := bbswitch
|
|
obj-m := $(modname).o
|
|
|
|
KVERSION := $(shell uname -r)
|
|
KDIR := /lib/modules/$(KVERSION)/build
|
|
PWD := "$$(pwd)"
|
|
|
|
default:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
|
|
|
load:
|
|
-/sbin/rmmod $(modname)
|
|
/sbin/insmod $(modname).ko
|
|
|
|
install_dkms_module:
|
|
./scripts/install_dkms.sh install
|
|
|
|
uninstall_dkms_module:
|
|
./scripts/install_dkms.sh uninstall
|