Skip to content

Commit dbe8943

Browse files
committed
Explicitly supply KVER and KARCH to dkms builds
1 parent c347140 commit dbe8943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install-driver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ else
330330
fi
331331

332332
if command -v /usr/bin/time >/dev/null 2>&1; then
333-
/usr/bin/time -f "Compile time: %U seconds" dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
333+
/usr/bin/time -f "Compile time: %U seconds" dkms build -m ${DRV_NAME} -v ${DRV_VERSION} -k "${KVER}/${KARCH}"
334334
else
335-
dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
335+
dkms build -m ${DRV_NAME} -v ${DRV_VERSION} -k "${KVER}/${KARCH}"
336336
fi
337337
RESULT=$?
338338

0 commit comments

Comments
 (0)