diff options
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -195,7 +195,7 @@ fixup_masm() { | |||
195 | } | 195 | } |
196 | 196 | ||
197 | # generate assembly crypto algorithms | 197 | # generate assembly crypto algorithms |
198 | asm_src=$CWD/asm | 198 | asm_src=$libcrypto_src |
199 | 199 | ||
200 | gen_asm_stdout() { | 200 | gen_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 | |||
213 | gen_asm_mips() { | 214 | gen_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 | |||
226 | gen_asm() { | 228 | gen_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 | ||
240 | setup_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 | |||
246 | setup_asm_generator | ||
247 | |||
248 | echo generating mips ASM source for elf | 242 | echo generating mips ASM source for elf |
249 | gen_asm_mips o32 aes aes-mips aes-mips | 243 | gen_asm_mips o32 aes aes-mips aes-mips |
250 | gen_asm_mips o32 bn mips bn-mips | 244 | gen_asm_mips o32 bn mips bn-mips |