From ec71b29a15dc7729e265735ceb2ff807187e3d75 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 19 Jun 2021 10:44:48 +0200 Subject: QAT: fix package build (extraction of driver version) Sometimes the Intel QAT driver source is delivered with uppercase letters, sometimes lowercase - that confused the build script. The code now always translates the package name to lower case to handle this issue. --- packages/linux-kernel/build-intel-qat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/linux-kernel/build-intel-qat.sh b/packages/linux-kernel/build-intel-qat.sh index ed2f69ee..ae894251 100755 --- a/packages/linux-kernel/build-intel-qat.sh +++ b/packages/linux-kernel/build-intel-qat.sh @@ -20,7 +20,7 @@ do DRIVER_FILE=$(basename ${url} | sed -e s/tar_0/tar/) DRIVER_DIR="${DRIVER_FILE%.tar.gz}" DRIVER_NAME="qat" - DRIVER_VERSION=$(echo ${DRIVER_DIR} | awk -F${DRIVER_NAME} '{print $2}') + DRIVER_VERSION=$(echo ${DRIVER_DIR} | tr A-Z a-z | awk -F${DRIVER_NAME} '{print $2}') DRIVER_VERSION_EXTRA="-0" # Build up Debian related variables required for packaging -- cgit v1.2.3