Skip to content

Commit 3c4f722

Browse files
committed
Explicitly supply KVER and KARCH to dkms builds
1 parent d1b4268 commit 3c4f722

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
@@ -353,9 +353,9 @@ else
353353
fi
354354

355355
if command -v /usr/bin/time >/dev/null 2>&1; then
356-
/usr/bin/time -f "Compile time: %U seconds" dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
356+
/usr/bin/time -f "Compile time: %U seconds" dkms build -m ${DRV_NAME} -v ${DRV_VERSION} -k "${KVER}/${KARCH}"
357357
else
358-
dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
358+
dkms build -m ${DRV_NAME} -v ${DRV_VERSION} -k "${KVER}/${KARCH}"
359359
fi
360360
RESULT=$?
361361

0 commit comments

Comments
 (0)