summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-06 04:22:51 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-06 04:22:51 +0100
commitc3704e0faf9159a097a7d6109bec223fdcc46f19 (patch)
tree5623f5856734b441285a6cc1bebd828d47e13f9c /misc
parent0dce5c26ecec594b3f25b9e003c830874a690e1c (diff)
downloadpcitool-c3704e0faf9159a097a7d6109bec223fdcc46f19.tar.gz
pcitool-c3704e0faf9159a097a7d6109bec223fdcc46f19.tar.bz2
pcitool-c3704e0faf9159a097a7d6109bec223fdcc46f19.tar.xz
pcitool-c3704e0faf9159a097a7d6109bec223fdcc46f19.zip
Fix dkms configuration
Diffstat (limited to 'misc')
-rw-r--r--misc/dkms-postbuild.sh3
-rw-r--r--misc/dkms.conf.in4
2 files changed, 5 insertions, 2 deletions
diff --git a/misc/dkms-postbuild.sh b/misc/dkms-postbuild.sh
new file mode 100644
index 0000000..ae73c1a
--- /dev/null
+++ b/misc/dkms-postbuild.sh
@@ -0,0 +1,3 @@
+#! /bin/bash
+
+make -C driver/ install_symvers KERNELVER=$kernelver KERNELDIR=$kernel_source_dir
diff --git a/misc/dkms.conf.in b/misc/dkms.conf.in
index 2e647a9..8b48180 100644
--- a/misc/dkms.conf.in
+++ b/misc/dkms.conf.in
@@ -1,5 +1,5 @@
-POST_INSTALL="make -C driver/ install_symvers KERNELVER=$kernelver KERNELDIR=$kernel_source_dir"
-MAKE="make -C driver/ KERNELDIR=/lib/modules/${kernelver}/build"
+POST_BUILD="dkms-postbuild.sh"
+MAKE="make -C driver/ KERNELDIR=/lib/modules/$kernelver/build"
CLEAN="make -C driver/ clean"
BUILT_MODULE_NAME=pciDriver
BUILT_MODULE_LOCATION=driver/