summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-08 14:35:06 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-08 14:35:06 +0100
commit70aab572f4199391fd514a9e1a64af8b1a3b8324 (patch)
tree3ee9783fcc9e7cb51b121eed400071f3cadf9116 /misc
parenteec7e74d2eccf811f0d25bb40fa514dc47655d67 (diff)
parentc3704e0faf9159a097a7d6109bec223fdcc46f19 (diff)
downloadpcitool-70aab572f4199391fd514a9e1a64af8b1a3b8324.tar.gz
pcitool-70aab572f4199391fd514a9e1a64af8b1a3b8324.tar.bz2
pcitool-70aab572f4199391fd514a9e1a64af8b1a3b8324.tar.xz
pcitool-70aab572f4199391fd514a9e1a64af8b1a3b8324.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/