Add a fingerprint of the ARM OS source files to detect when a client expects another ARM image

This commit is contained in:
Philippe Teuwen 2022-02-14 02:57:10 +01:00
commit bbf49ab560
5 changed files with 21 additions and 1 deletions

View file

@ -58,6 +58,11 @@ if [ "$fullgitinfoextra" != "$fullgitinfo" ]; then
fullgitinfo46="${fullgitinfo%"${fullgitinfoextra}"}"
fullgitinfo="${fullgitinfo46}..."
fi
sha=$(
pm3path=$(dirname -- "$0")/..
cd "$pm3path" || return
ls armsrc/*.[ch] common_arm/*.[ch]|grep -v disabled|grep -v version_pm3|xargs sha256sum|sha256sum|grep -o '^.........'
)
cat <<EOF
#include "common.h"
/* Generated file, do not edit */
@ -74,5 +79,6 @@ const struct version_information_t SECTVERSINFO g_version_information = {
$clean,
"$fullgitinfo",
"$ctime",
"$sha"
};
EOF