summaryrefslogtreecommitdiff
path: root/setkernelversion.sh
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-07-03 18:24:05 -0500
committerJohn Klug <john.klug@multitech.com>2019-07-03 18:24:05 -0500
commit8107f428a357894667ba890fd5295c5e72d70aa2 (patch)
tree4e0c089db253ffc62648882110a621b154b28a95 /setkernelversion.sh
parentc9360c9479287f3ba229c9a37142baa5a22cce67 (diff)
downloadmlinux-8107f428a357894667ba890fd5295c5e72d70aa2.tar.gz
mlinux-8107f428a357894667ba890fd5295c5e72d70aa2.tar.bz2
mlinux-8107f428a357894667ba890fd5295c5e72d70aa2.zip
Fix setkernel version and add compatibility with MTR
Diffstat (limited to 'setkernelversion.sh')
-rwxr-xr-xsetkernelversion.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/setkernelversion.sh b/setkernelversion.sh
index 04f27ce..7d7c07e 100755
--- a/setkernelversion.sh
+++ b/setkernelversion.sh
@@ -5,7 +5,7 @@
# revision to external kernel modules.
_skv_BUILDCONF=conf/local.conf
_skv_KERNELDIR=../layers/meta-multitech/recipes-kernel/linux
- _skv_KERNBB=${_skv_KERNELDIR}/linux_*.bb
+ _skv_KERNBB=${_skv_KERNELDIR}/linux-at91_*.bb
if ! [[ -f $_skv_BUILDCONF ]] ; then
echo "Current directory is $(pwd) and must be the build directory."
echo "ERROR: Cannot find $_skv_BUILDCONF"
@@ -33,11 +33,11 @@
fi
fi
- _skv_krecipe=$(echo $(cd ../layers/meta-multitech/recipes-kernel/linux;echo linux_*.bb))
+ _skv_krecipe=$(echo $(cd ../layers/meta-multitech/recipes-kernel/linux;echo linux-at91_*.bb))
_skv_old=$(egrep '^MLINUX_KERNEL_VERSION[[:space:]]*=' ${_skv_BUILDCONF} | tail -1)
- if ((${#_skv_krecipe})) && [[ $_skv_krecipe =~ linux_(.*).bb$ ]] ; then
+ if ((${#_skv_krecipe})) && [[ $_skv_krecipe =~ linux-at91_(.*).bb$ ]] ; then
_skv_MLINUX_KERNEL_VERSION="${BASH_REMATCH[1]}"
_skv_repl="MLINUX_KERNEL_VERSION = \"${_skv_MLINUX_KERNEL_VERSION}\""
if [[ ${_skv_old} != ${_skv_repl} ]] ; then