Print dkms build log on failure

This commit is contained in:
Oystein Tveit 2023-07-05 14:53:53 +02:00
parent 2d38429921
commit 0147605ec2
2 changed files with 9 additions and 2 deletions

@ -1,7 +1,7 @@
{
"name": "USBIP DKMS Module",
"id": "usbip-dkms",
"version": "0.2.1",
"version": "0.2.2",
"description": "DKMS module for USBIP",
"installsAfter": [

@ -36,5 +36,12 @@ if [ -n "$ENABLE_VUDC" ]; then
fi
dkms add -m usbip -v "${KERNEL_VERSION}"
dkms build -m usbip -v "${KERNEL_VERSION}"
if ! dkms build -m usbip -v "${KERNEL_VERSION}"; then
>&2 echo "Could not build usbip kernel module"
>&2 echo "build/make.log:"
cat /var/lib/dkms/usbip/"${KERNEL_VERSION}"/build/make.log >&2
exit 1
fi
dkms install -m usbip -v "${KERNEL_VERSION}"