summaryrefslogtreecommitdiff
path: root/tools/abi-checker/src/build_api_kernel_checker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/abi-checker/src/build_api_kernel_checker.sh')
-rwxr-xr-xtools/abi-checker/src/build_api_kernel_checker.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/tools/abi-checker/src/build_api_kernel_checker.sh b/tools/abi-checker/src/build_api_kernel_checker.sh
deleted file mode 100755
index 52693f8a5ff..00000000000
--- a/tools/abi-checker/src/build_api_kernel_checker.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-# Find abi_version file
-ksymver=`find ../../.. -name "Module.symvers"`
-
-ABI_TOOL_LOCATION="/usr/local/bin"
-ABI_TOOL_NAME="abi-checker"
-ABI_TOOL="${ABI_TOOL_LOCATION}/${ABI_TOOL_NAME}"
-
-if [ -x "${ABI_TOOL}" ]
-then
- CMD="${ABI_TOOL}"
-elif [ -x "./${ABI_TOOL_NAME}" ]
-then
- CMD="./${ABI_TOOL_NAME}"
-else
- CMD="${ABI_TOOL_NAME}"
-fi
-
-# compare abi fingerprint file with kernel abi file
-"${CMD}" test-kernel "${ksymver}" "../data/abi_${1}_${2}"
-rc="${?}"
-
-# Test result
-if [ ${rc} != "0" ]
-then
- echo ""
- echo "----------------------------------------------------------------------------------------------------------------------------"
- echo ""
- echo "The kernel ABI/API has changed. Please update kernel version and add a new tools/abi-checker/data/abi_VERSION_ABIVER file "
- echo "(example tools/abi-checker/data/abi_${1}_${2} )."
- echo "The kernel sources build will abort."
- echo ""
- echo ""
- exit 1
-fi
-
-exit 0