aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2024-02-27 07:18:09 -0600
committerBrent Cook <busterb@gmail.com>2024-02-27 07:18:09 -0600
commitd8702f6951420d7641e02c04c8ce4db5762ddb07 (patch)
treeb17ae03e53ed2befaf55883492bf1e293e2a7026 /update.sh
parent53edbd00c12ee1d27f1b9533933b32781125c758 (diff)
downloadportable-d8702f6951420d7641e02c04c8ce4db5762ddb07.tar.gz
portable-d8702f6951420d7641e02c04c8ce4db5762ddb07.tar.bz2
portable-d8702f6951420d7641e02c04c8ce4db5762ddb07.zip
upstreamed masm alignment fix
Diffstat (limited to '')
-rwxr-xr-xupdate.sh12
1 files changed, 3 insertions, 9 deletions
diff --git a/update.sh b/update.sh
index 08cac6f..4fd1ab2 100755
--- a/update.sh
+++ b/update.sh
@@ -195,7 +195,7 @@ fixup_masm() {
195} 195}
196 196
197# generate assembly crypto algorithms 197# generate assembly crypto algorithms
198asm_src=$CWD/asm 198asm_src=$libcrypto_src
199 199
200gen_asm_stdout() { 200gen_asm_stdout() {
201 CC=true perl $asm_src/$2 $1 > crypto/$3.tmp 201 CC=true perl $asm_src/$2 $1 > crypto/$3.tmp
@@ -210,6 +210,7 @@ gen_asm_stdout() {
210 $MV crypto/$3.tmp crypto/$3 210 $MV crypto/$3.tmp crypto/$3
211 fi 211 fi
212} 212}
213
213gen_asm_mips() { 214gen_asm_mips() {
214 abi=$1 215 abi=$1
215 dir=$2 216 dir=$2
@@ -223,6 +224,7 @@ gen_asm_mips() {
223 EOF 224 EOF
224 mv $dst.S crypto/$dir/$dst.S 225 mv $dst.S crypto/$dir/$dst.S
225} 226}
227
226gen_asm() { 228gen_asm() {
227 CC=true perl $asm_src/$2 $1 crypto/$3.tmp 229 CC=true perl $asm_src/$2 $1 crypto/$3.tmp
228 [ $1 = "elf" ] && cat <<-EOF >> crypto/$3.tmp 230 [ $1 = "elf" ] && cat <<-EOF >> crypto/$3.tmp
@@ -237,14 +239,6 @@ gen_asm() {
237 fi 239 fi
238} 240}
239 241
240setup_asm_generator() {
241 rm -fr $asm_src
242 cp -a $libcrypto_src $asm_src
243 patch -d $asm_src -p4 < patches/asm/masm-align-64.patch
244}
245
246setup_asm_generator
247
248echo generating mips ASM source for elf 242echo generating mips ASM source for elf
249gen_asm_mips o32 aes aes-mips aes-mips 243gen_asm_mips o32 aes aes-mips aes-mips
250gen_asm_mips o32 bn mips bn-mips 244gen_asm_mips o32 bn mips bn-mips