diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-08-18 07:04:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-08-19 09:31:26 +0200 |
commit | 4b5b65fe21be09d5eb42ab822c72638a110b7c60 (patch) | |
tree | 4b1157bd39dd19ecccb9be12c471b0cce369106d /images/Makefile | |
parent | 81f0511d0fde5ac917fb322f2ad2184b3b033eec (diff) | |
download | barebox-4b5b65fe21be09d5eb42ab822c72638a110b7c60.tar.gz barebox-4b5b65fe21be09d5eb42ab822c72638a110b7c60.tar.xz |
kbuild: make sha256sum command available generally
We currently use the command only for generation a SHA256 sum of the
barebox proper binary. In preparation for using it in othe Makefiles
as well, move it to a central location and use the occasion to give
it a short comment.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220818050447.2072932-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images/Makefile')
-rw-r--r-- | images/Makefile | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/images/Makefile b/images/Makefile index 7a8bb94fe0..218a24ff1d 100644 --- a/images/Makefile +++ b/images/Makefile @@ -112,13 +112,6 @@ $(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 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 > $@ - $(obj)/barebox.sha.bin: $(obj)/barebox.sum FORCE $(call if_changed,sha256bin) |