aboutsummaryrefslogtreecommitdiffstats
path: root/Configurations
diff options
context:
space:
mode:
authorBob Beck <[email protected]>2026-08-08 01:03:56 +0200
committerTomas Mraz <[email protected]>2026-09-01 15:59:46 +0200
commit3a9b327813e3d14388138caeeda18450fe9ec2fe (patch)
tree5bcfb16ab3210f28b0e2382ab1683ce7b69595e7 /Configurations
parentSkip error and ordinal regeneration when nothing has changed (diff)
downloadopenssl-3a9b327813e3d14388138caeeda18450fe9ec2fe.tar.gz
openssl-3a9b327813e3d14388138caeeda18450fe9ec2fe.zip
Replace generated crypto/objects files only when their content changes
Reviewed-by: Neil Horman <[email protected]> Reviewed-by: Andrew Dinh <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> Merge-date: Tue Sep 1 14:03:00 2026 Merged-from: https://github.com/openssl/openssl/pull/32243
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/unix-Makefile.tmpl45
1 files changed, 28 insertions, 17 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index b6ce8707ebe..2642a0d1a2f 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -1241,23 +1241,34 @@ generate_crypto_bn:
( cd $(SRCDIR); $(PERL) crypto/bn/bn_prime.pl > crypto/bn/bn_prime.h )
generate_crypto_objects:
- ( cd $(SRCDIR); $(PERL) crypto/objects/objects.pl -n \
- crypto/objects/objects.txt \
- crypto/objects/obj_mac.num \
- > crypto/objects/obj_mac.new && \
- mv crypto/objects/obj_mac.new crypto/objects/obj_mac.num )
- ( cd $(SRCDIR); $(PERL) crypto/objects/objects.pl \
- crypto/objects/objects.txt \
- crypto/objects/obj_mac.num \
- > include/openssl/obj_mac.h )
- ( cd $(SRCDIR); $(PERL) crypto/objects/obj_dat.pl \
- include/openssl/obj_mac.h \
- > crypto/objects/obj_dat.h )
- ( cd $(SRCDIR); $(PERL) crypto/objects/objxref.pl \
- crypto/objects/obj_mac.num \
- crypto/objects/obj_xref.txt \
- > crypto/objects/obj_xref.h )
- ( cd $(SRCDIR); sed -e '1,8d' crypto/objects/obj_compat.h >> include/openssl/obj_mac.h )
+ ( cd $(SRCDIR); set -e; \
+ $(PERL) crypto/objects/objects.pl -n \
+ crypto/objects/objects.txt \
+ crypto/objects/obj_mac.num \
+ > crypto/objects/obj_mac.num.new; \
+ $(PERL) crypto/objects/objects.pl \
+ crypto/objects/objects.txt \
+ crypto/objects/obj_mac.num.new \
+ > include/openssl/obj_mac.h.new; \
+ $(PERL) crypto/objects/obj_dat.pl \
+ include/openssl/obj_mac.h.new \
+ > crypto/objects/obj_dat.h.new; \
+ $(PERL) crypto/objects/objxref.pl \
+ crypto/objects/obj_mac.num.new \
+ crypto/objects/obj_xref.txt \
+ > crypto/objects/obj_xref.h.new; \
+ sed -e '1,8d' crypto/objects/obj_compat.h \
+ >> include/openssl/obj_mac.h.new; \
+ for f in crypto/objects/obj_mac.num \
+ include/openssl/obj_mac.h \
+ crypto/objects/obj_dat.h \
+ crypto/objects/obj_xref.h; do \
+ if cmp $$f.new $$f > /dev/null 2>&1; then \
+ rm $$f.new; \
+ else \
+ mv $$f.new $$f; \
+ fi; \
+ done )
generate_crypto_conf:
( cd $(SRCDIR); $(PERL) crypto/conf/keysets.pl \