diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2017-11-13 21:26:15 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2017-11-13 21:40:05 +0100 |
| commit | 6cda549fe2bce6a895df78aa59388861bb3a6fae (patch) | |
| tree | 27360f0486c0bf9d9b24b742c248a0b0328bec9f | |
| parent | b778ea3626ac1d9e88cef5d0a96e0f7118186527 (diff) | |
| download | dev-cyber-6cda549fe2bce6a895df78aa59388861bb3a6fae.tar.xz dev-cyber-6cda549fe2bce6a895df78aa59388861bb3a6fae.zip | |
makefile: better support for DKMSv42.1729.1812
| -rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -10,12 +10,16 @@ cyber-objs := src/cyber_device.o \ src/cyber_lifecycle.o \ src/cyber.o +ifeq ($(KERNEL_VERSION),) +KERNEL_VERSION=$(shell uname -r) +endif + all: - make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules + make -C /lib/modules/$(KERNEL_VERSION)/build/ M=$(PWD) modules install: - make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules_install + make -C /lib/modules/$(KERNEL_VERSION)/build/ M=$(PWD) modules_install depmod -a clean: - make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean + make -C /lib/modules/$(KERNEL_VERSION)/build/ M=$(PWD) clean |
