]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add diff-fips-checksums target to compare BLDDIR and SRCDIR checksums
authorTomas Mraz <tomas@openssl.org>
Tue, 11 May 2021 14:20:51 +0000 (16:20 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 13 May 2021 08:23:42 +0000 (10:23 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15229)

Configurations/unix-Makefile.tmpl

index f4805e87136f3de704d097808675737ac0d0f2e4..345c1972538284d8d4ba4619944ebce0d473c04e 100644 (file)
@@ -1283,6 +1283,15 @@ $(SRCDIR)/providers/fips.checksum: providers/fips.checksum
 
 update-fips-checksums: $(SRCDIR)/providers/fips.checksum
 
+diff-fips-checksums: fips-checksums
+       @if [ "$(SRCDIR)" = "$(BLDDIR)" ]; then \
+           echo >&2 "Nothing to diff as the build and the source tree is the same"; \
+           false; \
+       fi
+       diff -u $(SRCDIR)/providers/fips.module.sources providers/fips.module.sources
+       diff -u $(SRCDIR)/providers/fips-sources.checksums providers/fips-sources.checksums
+       diff -u $(SRCDIR)/providers/fips.checksum providers/fips.checksum
+
 # Release targets (note: only available on Unix) #####################
 
 tar: