From c7f880b802e78ceec0fdd6c7d379230f1c437200 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Mon, 4 Sep 2017 23:43:31 +0100 Subject: [PATCH] tools: allow kernel version commit description format to be vX.Y.Z as well as X.Y.Z --- tools/RPi/gen-rpi-linux-patch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/RPi/gen-rpi-linux-patch.sh b/tools/RPi/gen-rpi-linux-patch.sh index 412ada97ef..2aa21ffa79 100755 --- a/tools/RPi/gen-rpi-linux-patch.sh +++ b/tools/RPi/gen-rpi-linux-patch.sh @@ -83,6 +83,7 @@ elif [ -z "${KERNEL}" ]; then BASEREV="linux-stable/linux-${BRANCH}.y" else BASEREV="$(git log --grep "Linux ${KERNEL}" --pretty=oneline | head -1)" + [ -z "${BASEREV}" ] && BASEREV="$(git log --grep "Linux v${KERNEL}" --pretty=oneline | head -1)" [ -z "${BASEREV}" ] && { echo "Unable to determine base revision for BRANCH=${BRANCH}, KERNEL=${KERNEL}"; exit 1; } echo