aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index 4c97ae3..93e71bb 100755
--- a/update.sh
+++ b/update.sh
@@ -191,12 +191,17 @@ fixup_masm() {
191 | sed -e 's/|/OR/g' \ 191 | sed -e 's/|/OR/g' \
192 | sed -e 's/~/NOT/g' \ 192 | sed -e 's/~/NOT/g' \
193 | sed -e 's/1 << \([0-9]*\)/1 SHL \1/g' \ 193 | sed -e 's/1 << \([0-9]*\)/1 SHL \1/g' \
194 | sed -e 's/^ALIGN.*//g' \
195 > $2 194 > $2
196} 195}
197 196
198# generate assembly crypto algorithms 197# generate assembly crypto algorithms
199asm_src=$libcrypto_src 198asm_src=$CWD/asm
199rm -fr $asm_src
200cp -a $libcrypto_src $asm_src
201for i in `ls -1 patches/asm/*.patch | sort -n`; do
202 patch -d $asm_src -p 4 < $i;
203done
204
200gen_asm_stdout() { 205gen_asm_stdout() {
201 CC=true perl $asm_src/$2 $1 > crypto/$3.tmp 206 CC=true perl $asm_src/$2 $1 > crypto/$3.tmp
202 [ $1 = "elf" ] && cat <<-EOF >> crypto/$3.tmp 207 [ $1 = "elf" ] && cat <<-EOF >> crypto/$3.tmp