Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # custom makefile for acpi_call
- ifneq ($(KERNELRELEASE),)
- obj-m := acpi_call.o
- else
- KDIR := /lib/modules/$(shell uname -r)/build
- INST := $(DESTDIR)/lib/modules/$(shell uname -r)/updates
- PWD := $(shell pwd)
- default:
- $(MAKE) -C $(KDIR) M=$(PWD) modules
- install: default
- [ -d $(INST) ] || mkdir $(INST)
- cp acpi_call.ko $(INST)/
- depmod -a
- uninstall:
- rm -f $(INST)/acpi_call.ko
- depmod -a
- load:
- -sudo /sbin/rmmod acpi_call
- sudo /sbin/insmod acpi_call.ko
- endif
- clean:
- $(MAKE) -C $(KDIR) M=$(PWD) clean
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement