Files
kernel-spacemit-k1/scripts/package/generic
liweizhi ea601693eb scripts/package to make linux-tools deb
* Now only the perf command is included

Change-Id: Icc8f1ea3d7073ba9d6e54190f0e2cc123cb4a2e1
2024-11-28 18:28:08 +08:00

16 lines
442 B
Bash

#!/bin/bash
full_version=`uname -r`
# First check for a fully qualified version.
this="/usr/lib/linux-tools/$full_version/`basename $0`"
if [ -f "$this" ]; then
exec "$this" "$@"
fi
# Give them a hint as to what to install.
echo "WARNING: `basename $0` not found for kernel $full_version" >&2
echo "" >&2
echo " You may need to install the following packages for this specific kernel:" >&2
echo " linux-tools-$full_version" >&2
exit 2