Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ifneq ($(KERNELRELEASE),)
- obj-m := airsensor.o
- else
- KDIR := /lib/modules/$(shell uname -r)/build
- PWD := $(shell pwd)
- default:
- $(MAKE) -C $(KDIR) M=$(PWD) modules
- endif
- load:
- sudo insmod airsensor.ko
- unload:
- sudo rmmod airsensor.ko
Advertisement
Add Comment
Please, Sign In to add comment