diff options
author | Richard Levitte <levitte@openssl.org> | 2016-03-07 15:46:17 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-03-09 11:09:26 +0100 |
commit | df0cb57ca3528ed0dd5ba47e77d724dc761a454d (patch) | |
tree | a1275c7135800025c19f2b73c69a5dbb318818ba /crypto/chacha/asm/chacha-x86.pl | |
parent | a4b4bb086bf9de74b3fce00c32d427c003506272 (diff) |
Unified - adapt the generation of chacha assembler to use GENERATE
This gets rid of the BEGINRAW..ENDRAW sections in crypto/chacha/build.info.
This also moves the assembler generating perl scripts to take the
output file name as last command line argument, where necessary.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/chacha/asm/chacha-x86.pl')
-rwxr-xr-x | crypto/chacha/asm/chacha-x86.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/chacha/asm/chacha-x86.pl b/crypto/chacha/asm/chacha-x86.pl index 850c917264..8b9696ff02 100755 --- a/crypto/chacha/asm/chacha-x86.pl +++ b/crypto/chacha/asm/chacha-x86.pl @@ -31,6 +31,9 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; push(@INC,"${dir}","${dir}../../perlasm"); require "x86asm.pl"; +$output=pop; +open STDOUT,">$output"; + &asm_init($ARGV[0],"chacha-x86.pl",$ARGV[$#ARGV] eq "386"); $xmm=$ymm=0; @@ -1130,3 +1133,5 @@ sub XOPROUND { } &asm_finish(); + +close STDOUT; |