Skip to content

Commit

Permalink
ANDROID: setlocalversion: make KMI_GENERATION optional
Browse files Browse the repository at this point in the history
GKI required the KMI_GENERATION to be added to the kernel version
string, but this only makes sense for GKI kernels, for non-GKI kernels
we don't need it. Leave all the other stuff we added, though, as it
seems useful.

Bug: 205897686
Change-Id: I2e7b3cb7ed5529f1e5e7c9d79a1f7ce4a1b6ee1f
Signed-off-by: Alistair Delva <[email protected]>
  • Loading branch information
adelva1984 committed Nov 17, 2021
1 parent a513b1e commit 4b0d5f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/setlocalversion
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ if test $# -gt 0; then
kmi_generation=$1
[ $(expr $kmi_generation : '^[0-9]\+$') -eq 0 ] && usage
shift
else
usage
fi
fi
if test $# -gt 0 -o ! -d "$srctree"; then
Expand All @@ -69,6 +67,8 @@ scm_version()

if [ -n "$android_release" ] && [ -n "$kmi_generation" ]; then
printf '%s' "-$android_release-$kmi_generation"
elif [ -n "$android_release" ]; then
printf '%s' "-$android_release"
fi

# If we are at a tagged commit (like "v2.6.30-rc6"), we ignore
Expand Down

0 comments on commit 4b0d5f0

Please sign in to comment.