build: add a hash to base and kernel set

This commit is contained in:
Franco Fichtner 2023-11-10 08:17:09 +01:00
parent 277fa7be97
commit c60169e642
1 changed files with 4 additions and 0 deletions

View File

@ -366,6 +366,7 @@ git_version()
if [ -z "$(echo ${PRODUCT_VERSION} | tr -d 0-9)" ]; then
git_describe ${1}
export PRODUCT_VERSION=${REPO_VERSION}
export PRODUCT_HASH=${REPO_COMMENT}
fi
if [ -z "${PRODUCT_VERSION%%*/*}" ]; then
@ -584,6 +585,9 @@ setup_version()
# embed size for general information
echo "${SIZE}" > ${VERSIONDIR}/${3}.size
# embed commit hash for identification
echo "${PRODUCT_HASH}" > ${VERSIONDIR}/${3}.hash
# embed target architecture
echo "${PRODUCT_ARCH}" > ${VERSIONDIR}/${3}.arch