diff options
-rw-r--r-- | images/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/images/Makefile b/images/Makefile index c79f1a272e..7a8bb94fe0 100644 --- a/images/Makefile +++ b/images/Makefile @@ -113,7 +113,8 @@ $(obj)/piggy.o: $(obj)/barebox.z FORCE $(obj)/sha_sum.o: $(obj)/barebox.sha.bin FORCE quiet_cmd_sha256bin ?= SHA-BIN $@ - cmd_sha256bin ?= printf "$(shell awk '{printf $$1}' < $(obj)/barebox.sum | sed -e 's/../\\x&/g' )" > $@ + cmd_sha256bin = printf "$(shell sed 's/ .*$$//;s/../0x&\n/g;s/\n$$//' $(obj)/barebox.sum | \ + while read -r byte; do printf '\%o' $$byte; done)" > $@ quiet_cmd_sha256sum ?= SHA $@ cmd_sha256sum ?= sha256sum $(obj)/barebox.z > $@ |