summaryrefslogtreecommitdiff
path: root/packages/linux-kernel/build-intel-qat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux-kernel/build-intel-qat.sh')
-rwxr-xr-xpackages/linux-kernel/build-intel-qat.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/linux-kernel/build-intel-qat.sh b/packages/linux-kernel/build-intel-qat.sh
index 048142ba..a3894009 100755
--- a/packages/linux-kernel/build-intel-qat.sh
+++ b/packages/linux-kernel/build-intel-qat.sh
@@ -2,6 +2,11 @@
CWD=$(pwd)
KERNEL_VAR_FILE=${CWD}/kernel-vars
+if ! dpkg-architecture -ii386 || ! dpkg-architecture -iamd64; then
+ echo "Intel-QAT is only buildable on x86 platforms"
+ exit 0
+fi
+
if [ ! -f ${KERNEL_VAR_FILE} ]; then
echo "Kernel variable file '${KERNEL_VAR_FILE}' does not exist, run ./build_kernel.sh first"
exit 1