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