summaryrefslogtreecommitdiffstats
path: root/crypto/aes/asm/aes-mips.pl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-03-11 00:49:47 +0100
committerRichard Levitte <levitte@openssl.org>2016-03-11 00:54:31 +0100
commita5aa63a456fb6e7129e3ba048b17d157df5a1bab (patch)
treee475bc701075d17526bc7229d2899cc7c3cce42c /crypto/aes/asm/aes-mips.pl
parent603358de576217812cb3d752e97c78e476cdc879 (diff)
Fix some assembler generating scripts for better unification
Some of these scripts would recognise an output parameter if it looks like a file path. That works both in both the classic and new build schemes. Some fo these scripts would only recognise it if it's a basename (i.e. no directory component). Those need to be corrected, as the output parameter in the new build scheme is more likely to contain a directory component than not. Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'crypto/aes/asm/aes-mips.pl')
-rw-r--r--crypto/aes/asm/aes-mips.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/aes/asm/aes-mips.pl b/crypto/aes/asm/aes-mips.pl
index a82d8af6f2..77dfe1ac9b 100644
--- a/crypto/aes/asm/aes-mips.pl
+++ b/crypto/aes/asm/aes-mips.pl
@@ -81,13 +81,13 @@ $pf = ($flavour =~ /nubi/i) ? $t0 : $t2;
$big_endian=(`echo MIPSEL | $ENV{CC} -E -`=~/MIPSEL/)?1:0 if ($ENV{CC});
-for (@ARGV) { $output=$_ if (/^\w[\w\-]*\.\w+$/); }
+for (@ARGV) { $output=$_ if (/\w[\w\-]*\.\w+$/); }
open STDOUT,">$output";
if (!defined($big_endian))
{ $big_endian=(unpack('L',pack('N',1))==1); }
-while (($output=shift) && ($output!~/^\w[\w\-]*\.\w+$/)) {}
+while (($output=shift) && ($output!~/\w[\w\-]*\.\w+$/)) {}
open STDOUT,">$output";
my ($MSB,$LSB)=(0,3); # automatically converted to little-endian