diff --git a/tools/RPi/gen-rpi-linux-patch.sh b/tools/RPi/gen-rpi-linux-patch.sh index c82d43a108..412ada97ef 100755 --- a/tools/RPi/gen-rpi-linux-patch.sh +++ b/tools/RPi/gen-rpi-linux-patch.sh @@ -14,6 +14,8 @@ BRANCH="$1" while [ $# -gt 1 ]; do if [ "${2,,}" == "rebase" ]; then REBASE="_rebase" + elif [[ ${2,,} =~ [_-]rebase ]]; then + REBASE="$2" elif [[ ${2} =~ ^[0-9a-f]*$ ]]; then BASEREV="${2}" fi @@ -24,10 +26,11 @@ usage() { local me="$(basename $0)" - echo "Usage: ${me} | [rebase] [baserev]" + echo "Usage: ${me} | [[_-]rebase] [baserev]" echo echo "Example: 4.4 (for rpi-4.4.y) or 4.4.6 - specifying an exact kernel version avoids fetching the upstream repo" echo " 4.4 rebase - use rpi-4.4.y_rebase branch" + echo " 4.4 -rebase - use rpi-4.4.y-rebase branch" echo " 4.6-rc6" echo " 4.7 523d939ef98fd712632d93a5a2b588e477a7565e" echo " 4.7.0"