aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh22
1 files changed, 12 insertions, 10 deletions
diff --git a/update.sh b/update.sh
index 514da89..9636ee7 100755
--- a/update.sh
+++ b/update.sh
@@ -132,10 +132,10 @@ copy_hdrs $libcrypto_src "stack/stack.h lhash/lhash.h stack/safestack.h
132 hkdf/hkdf.h hmac/hmac.h rand/rand.h md5/md5.h 132 hkdf/hkdf.h hmac/hmac.h rand/rand.h md5/md5.h
133 x509/x509v3.h conf/conf.h ocsp/ocsp.h 133 x509/x509v3.h conf/conf.h ocsp/ocsp.h
134 aes/aes.h modes/modes.h asn1/asn1t.h bf/blowfish.h 134 aes/aes.h modes/modes.h asn1/asn1t.h bf/blowfish.h
135 bio/bio.h cast/cast.h cmac/cmac.h cms/cms.h conf/conf_api.h des/des.h dh/dh.h 135 bio/bio.h cast/cast.h cmac/cmac.h cms/cms.h des/des.h dh/dh.h
136 dsa/dsa.h engine/engine.h ui/ui.h pkcs12/pkcs12.h ts/ts.h 136 dsa/dsa.h engine/engine.h ui/ui.h pkcs12/pkcs12.h ts/ts.h
137 md4/md4.h ripemd/ripemd.h whrlpool/whrlpool.h idea/idea.h 137 md4/md4.h ripemd/ripemd.h idea/idea.h
138 rc2/rc2.h rc4/rc4.h ui/ui_compat.h txt_db/txt_db.h 138 rc2/rc2.h rc4/rc4.h txt_db/txt_db.h
139 sm3/sm3.h sm4/sm4.h chacha/chacha.h evp/evp.h poly1305/poly1305.h 139 sm3/sm3.h sm4/sm4.h chacha/chacha.h evp/evp.h poly1305/poly1305.h
140 camellia/camellia.h curve25519/curve25519.h 140 camellia/camellia.h curve25519/curve25519.h
141 ct/ct.h kdf/kdf.h" 141 ct/ct.h kdf/kdf.h"
@@ -170,6 +170,12 @@ for i in $libcrypto_src/arch/*; do
170 arch=`basename $i` 170 arch=`basename $i`
171 mkdir -p include/arch/$arch 171 mkdir -p include/arch/$arch
172 $CP $libcrypto_src/arch/$arch/opensslconf.h include/arch/$arch/ 172 $CP $libcrypto_src/arch/$arch/opensslconf.h include/arch/$arch/
173 mkdir -p crypto/arch/$arch
174 $CP $libcrypto_src/arch/$arch/crypto_arch.h crypto/arch/$arch/
175 crypto_cpu_caps=$libcrypto_src/arch/$arch/crypto_cpu_caps.c
176 if [ -f "$crypto_cpu_caps" ]; then
177 $CP "$crypto_cpu_caps" crypto/arch/$arch/
178 fi
173done 179done
174 180
175for i in $libcrypto_src/bn/arch/*; do 181for i in $libcrypto_src/bn/arch/*; do
@@ -274,13 +280,8 @@ for abi in elf macosx masm mingw64; do
274 gen_asm_stdout $abi bn/asm/modexp512-x86_64.pl bn/modexp512-$abi-x86_64.S 280 gen_asm_stdout $abi bn/asm/modexp512-x86_64.pl bn/modexp512-$abi-x86_64.S
275 gen_asm_stdout $abi bn/asm/x86_64-mont.pl bn/mont-$abi-x86_64.S 281 gen_asm_stdout $abi bn/asm/x86_64-mont.pl bn/mont-$abi-x86_64.S
276 gen_asm_stdout $abi bn/asm/x86_64-mont5.pl bn/mont5-$abi-x86_64.S 282 gen_asm_stdout $abi bn/asm/x86_64-mont5.pl bn/mont5-$abi-x86_64.S
277 gen_asm_stdout $abi md5/asm/md5-x86_64.pl md5/md5-$abi-x86_64.S
278 gen_asm_stdout $abi modes/asm/ghash-x86_64.pl modes/ghash-$abi-x86_64.S 283 gen_asm_stdout $abi modes/asm/ghash-x86_64.pl modes/ghash-$abi-x86_64.S
279 gen_asm_stdout $abi rc4/asm/rc4-x86_64.pl rc4/rc4-$abi-x86_64.S 284 gen_asm_stdout $abi rc4/asm/rc4-x86_64.pl rc4/rc4-$abi-x86_64.S
280 gen_asm_stdout $abi sha/asm/sha1-x86_64.pl sha/sha1-$abi-x86_64.S
281 gen_asm $abi sha/asm/sha512-x86_64.pl sha/sha256-$abi-x86_64.S
282 gen_asm $abi sha/asm/sha512-x86_64.pl sha/sha512-$abi-x86_64.S
283 gen_asm $abi x86_64cpuid.pl cpuid-$abi-x86_64.S
284done 285done
285 286
286# copy libtls source 287# copy libtls source
@@ -333,7 +334,7 @@ done
333echo "copying libssl source" 334echo "copying libssl source"
334rm -f ssl/*.c ssl/*.h 335rm -f ssl/*.c ssl/*.h
335touch ssl/empty.c 336touch ssl/empty.c
336for i in `awk '/SOURCES|HEADERS/ { print $3 }' ssl/Makefile.am` ; do 337for i in `awk '/SOURCES|HEADERS/ { if ($3 !~ /.*crypto_arch.*/) print $3 }' ssl/Makefile.am` ; do
337 dir=`dirname $i` 338 dir=`dirname $i`
338 mkdir -p ssl/$dir 339 mkdir -p ssl/$dir
339 $CP $libssl_src/$i ssl/$i 340 $CP $libssl_src/$i ssl/$i
@@ -344,7 +345,7 @@ $GREP '^[A-Za-z0-9_]' < $libssl_src/Symbols.list > ssl/ssl.sym
344# copy libcrypto tests 345# copy libcrypto tests
345echo "copying tests" 346echo "copying tests"
346touch tests/empty.c 347touch tests/empty.c
347for i in `find $libcrypto_regress -name '*.c'`; do 348for i in `find $libcrypto_regress -name '*.[ch]'`; do
348 $CP "$i" tests 349 $CP "$i" tests
349done 350done
350$CP $libcrypto_regress/evp/evptests.txt tests 351$CP $libcrypto_regress/evp/evptests.txt tests
@@ -352,6 +353,7 @@ $CP $libcrypto_regress/aead/*.txt tests
352$CP $libcrypto_regress/ct/ctlog.conf tests 353$CP $libcrypto_regress/ct/ctlog.conf tests
353$CP $libcrypto_regress/ct/*.crt tests 354$CP $libcrypto_regress/ct/*.crt tests
354$CP $libcrypto_regress/x509/policy/*.pem tests 355$CP $libcrypto_regress/x509/policy/*.pem tests
356$CP $libcrypto_regress/mlkem/*.txt tests
355 357
356# generate libcrypto freenull.c 358# generate libcrypto freenull.c
357awk -f $libcrypto_regress/free/freenull.awk \ 359awk -f $libcrypto_regress/free/freenull.awk \