From 4c8b4af337acec7b671c3d3a92e2226030164a55 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 27 Feb 2022 12:46:55 +0100 Subject: [PATCH] mkversion: indicate when no sha256 generated --- tools/mkversion.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/mkversion.sh b/tools/mkversion.sh index a83c94e71..9a147c061 100755 --- a/tools/mkversion.sh +++ b/tools/mkversion.sh @@ -65,6 +65,9 @@ sha=$( [ -f armsrc/appmain.c ] || return ls armsrc/*.[ch] common_arm/*.[ch]|grep -E -v "(disabled|version_pm3|fpga_version_info)"|xargs sha256sum|sha256sum|cut -c -9 ) +if [ "$sha" = "" ]; then + sha="no sha256" +fi cat <