forked from nikkuss/x1e-nixos
init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
obj-m += spi-hid.o
|
||||
spi-hid-objs := spi-hid-core.o
|
||||
else
|
||||
KERNEL_DIR ?= /lib/modules/$(shell uname -r)/build
|
||||
PWD := $(shell pwd)
|
||||
|
||||
all:
|
||||
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules
|
||||
|
||||
clean:
|
||||
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean
|
||||
|
||||
install:
|
||||
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules_install
|
||||
endif
|
||||
Reference in New Issue
Block a user