diff options
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |
199 | asm_src=$libcrypto_src | 198 | asm_src=$CWD/asm |
199 | rm -fr $asm_src | ||
200 | cp -a $libcrypto_src $asm_src | ||
201 | for i in `ls -1 patches/asm/*.patch | sort -n`; do | ||
202 | patch -d $asm_src -p 4 < $i; | ||
203 | done | ||
204 | |||
200 | gen_asm_stdout() { | 205 | gen_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 |