You've already forked apple-ib-drv
mirror of
https://github.com/t2linux/apple-ib-drv.git
synced 2026-04-30 13:31:57 -07:00
277505e072
Run with 'make debug'.
31 lines
555 B
Makefile
31 lines
555 B
Makefile
obj-m += applespi.o
|
|
obj-m += appletb.o
|
|
obj-m += debug_acpi.o
|
|
|
|
KVERSION := $(KERNELRELEASE)
|
|
ifeq ($(origin KERNELRELEASE), undefined)
|
|
KVERSION := $(shell uname -r)
|
|
endif
|
|
KDIR := /lib/modules/$(KVERSION)/build
|
|
PWD := $(shell pwd)
|
|
|
|
all:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) clean
|
|
|
|
install:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
|
|
|
|
test: all
|
|
sync
|
|
-rmmod applespi
|
|
insmod ./applespi.ko
|
|
|
|
debug: all
|
|
sudo insmod ./debug_acpi.ko
|
|
sudo rmmod debug_acpi
|
|
dmesg | grep debug_acpi > debug.out
|
|
@echo "output in debug.out"
|