Skip to content

Commit

Permalink
dkms: Support building for non-current kernel.
Browse files Browse the repository at this point in the history
  • Loading branch information
philipl committed May 7, 2017
1 parent 23777b7 commit d476484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ EXTRA_FLAGS += -I$(PWD)
# any valid path to the directory in which the target kernel's source is located
# can be provided on the command line.
#
KDIR := /lib/modules/$(shell uname -r)/build
MDIR := /lib/modules/$(shell uname -r)
KDIR ?= /lib/modules/$(shell uname -r)/build
MDIR ?= /lib/modules/$(shell uname -r)
PWD := $(shell pwd)
KREL := $(shell cd ${KDIR} && make -s kernelrelease)
PWD := $(shell pwd)
Expand Down
2 changes: 1 addition & 1 deletion dkms.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PACKAGE_NAME="exfat"
PACKAGE_VERSION="1.2.8"
MAKE="KDIR=/lib/modules/$kernelver/build make"
MAKE="KDIR=/lib/modules/$kernelver/build MDIR=/lib/modules/$kernelver make"
CLEAN="make clean"
BUILT_MODULE_NAME[0]="exfat"
AUTOINSTALL="yes"
Expand Down

0 comments on commit d476484

Please sign in to comment.