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 committed 2022-02-17 01:43:39 +01:00
1 parent d0526d3ba9
commit bbf49ab560
5 files changed
+21 -1

No files matched your search

+6
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