]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Avoid using sha1sum when calculating build ID
authorMichael Brown <mcb30@ipxe.org>
Sun, 31 Jan 2021 00:30:10 +0000 (00:30 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sun, 31 Jan 2021 00:30:10 +0000 (00:30 +0000)
The sha1sum command may not be available on all systems.  Use the
POSIX-confirming cksum instead.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping

index 25abe57124114545fd6c4817a0e0eae45ebae642..e91307023aef438259d9295b78bb338a0eee9125 100644 (file)
@@ -1176,7 +1176,7 @@ blib : $(BLIB)
 # different builds (such as builds for multiple ROMs all built from
 # the same blib.a).
 #
-BUILD_ID_CMD = sha1sum $^ | sort | cksum | awk '{printf "0x%08x", $$1}'
+BUILD_ID_CMD = cat $^ | cksum | awk '{printf "0x%08x", $$1}'
 
 # Build timestamp
 #