summaryrefslogtreecommitdiffstats
path: root/crypto/x86cpuid.pl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-03-07 15:00:45 +0100
committerRichard Levitte <levitte@openssl.org>2016-03-09 11:09:26 +0100
commit0a4edb931b883b9973721ae012e60c028387dd50 (patch)
tree730cc054212d09f0de3637da7c800650b96bed04 /crypto/x86cpuid.pl
parent184bc45f683c76531d7e065b6553ca9086564576 (diff)
Unified - adapt the generation of cpuid, uplink and buildinf to use GENERATE
This gets rid of the BEGINRAW..ENDRAW sections in crypto/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/x86cpuid.pl')
-rw-r--r--crypto/x86cpuid.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/x86cpuid.pl b/crypto/x86cpuid.pl
index 86772329bc..48c4cf204b 100644
--- a/crypto/x86cpuid.pl
+++ b/crypto/x86cpuid.pl
@@ -4,6 +4,10 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
push(@INC, "${dir}perlasm", "perlasm");
require "x86asm.pl";
+$output = pop;
+open OUT,">$output";
+*STDOUT=*OUT;
+
&asm_init($ARGV[0],"x86cpuid");
for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
@@ -487,3 +491,5 @@ my $max = "ebp";
&hidden("OPENSSL_ia32cap_P");
&asm_finish();
+
+close STDOUT;