ANDROID: Append BUILD_NUMBER to KERNELRELEASE

If building on Android infrastructure, the BUILD_NUMBER variable will be
set to indicate a unique build ID for this build. Add it to the kernel
version, which is used by UTS_RELEASE and various other build steps.

Bug: 137521202
Bug: 159842160
Bug: 194209519
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: I44ab12ad16439c7e518b878af03153822447a4b2
This commit is contained in:
Alistair Delva
2021-07-20 12:16:00 -07:00
parent 90b4fe58dd
commit 0da34453de

View File

@@ -214,4 +214,9 @@ else
fi
fi
# finally, add the abXXX number if BUILD_NUMBER is set
if test -n "${BUILD_NUMBER}"; then
res="$res-ab${BUILD_NUMBER}"
fi
echo "$res"