update_kernel.sh: fix unified version file updates
authorRui Salvaterra <rsalvaterra@gmail.com>
Tue, 8 Feb 2022 13:17:03 +0000 (13:17 +0000)
committerRui Salvaterra <rsalvaterra@gmail.com>
Wed, 9 Feb 2022 08:45:05 +0000 (08:45 +0000)
commit727faee6d0e640c358f1f9f09794d1428c3c82b6
treeab4763f356e3b72314dc8e181fc882f641389423
parentcbb9d087d6b13bd066a1d2e19ba25f87b06f5200
update_kernel.sh: fix unified version file updates

The previous commit broke the kernel-version.mk automated update, since the
kernel version files are now split. However, older branches still use the
unified file, so compatibility must be kept.

Check for the presence of the kernel version-specific file. If it doesn't exist,
assume we're using the unified file and do the version update accordingly.

Fixes: cbb9d08 ("update_kernel.sh: update it to new kernel hash/version file way")
Tested-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
update_kernel.sh