mkversion: indicate when no sha256 generated

This commit is contained in:
Philippe Teuwen 2022-02-27 12:46:55 +01:00
parent 738963306e
commit 4c8b4af337

View file

@ -65,6 +65,9 @@ sha=$(
[ -f armsrc/appmain.c ] || return [ -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 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 <<EOF cat <<EOF
#include "common.h" #include "common.h"
/* Generated file, do not edit */ /* Generated file, do not edit */