Explicitly supply KVER and KARCH to dkms builds

This commit is contained in:
jlkDE 2023-02-05 16:35:54 +01:00
parent d1b426877b
commit 3c4f722bcc

View File

@ -353,9 +353,9 @@ else
fi
if command -v /usr/bin/time >/dev/null 2>&1; then
/usr/bin/time -f "Compile time: %U seconds" dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
/usr/bin/time -f "Compile time: %U seconds" dkms build -m ${DRV_NAME} -v ${DRV_VERSION} -k "${KVER}/${KARCH}"
else
dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
dkms build -m ${DRV_NAME} -v ${DRV_VERSION} -k "${KVER}/${KARCH}"
fi
RESULT=$?