Commit 396df731 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

crypto/*/Makefile: unify "catch-all" assembler make rules and harmonize

ARM assembler modules.
parent f04f3873
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ aes-parisc.s: asm/aes-parisc.pl
	$(PERL) asm/aes-parisc.pl $(PERLASM_SCHEME) $@

# GNU make "catch all"
aes-%.s:	asm/aes-%.pl;	$(PERL) $< $(CFLAGS) > $@
aes-%.s:	asm/aes-%.pl;	$(PERL) $< $(PERLASM_SCHEME) $@

files:
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
+4 −0
Original line number Diff line number Diff line
@@ -22,6 +22,9 @@
#
# AES_set_[en|de]crypt_key is added.

while (($output=shift) && ($output!~/^\w[\w\-]*\.\w+$/)) {}
open STDOUT,">$output";

$s0="r0";
$s1="r1";
$s2="r2";
@@ -1029,3 +1032,4 @@ ___

$code =~ s/\bbx\s+lr\b/.word\t0xe12fff1e/gm;	# make it possible to compile with -march=armv4
print $code;
close STDOUT;	# enforce flush
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ alpha-mont.s: asm/alpha-mont.pl
	$(PERL) $< | $(CC) -E - | tee $@ > /dev/null

# GNU make "catch all"
%-mont.s:	asm/%-mont.pl;	$(PERL) $< $(CFLAGS) > $@
%-mont.s:	asm/%-mont.pl;	$(PERL) $< $(PERLASM_SCHEME) $@

files:
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
+2 −1
Original line number Diff line number Diff line
@@ -55,8 +55,9 @@ ghash-alpha.s: asm/ghash-alpha.pl
	$(PERL) $< | $(CC) -E - | tee $@ > /dev/null
ghash-parisc.s:	asm/ghash-parisc.pl
	$($PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@

# GNU make "catch all"
ghash-%.s:	asm/ghash-%.pl;	$(PERL) $< $(PERLASM_SCHEME) $(CFLAGS) > $@
ghash-%.s:	asm/ghash-%.pl;	$(PERL) $< $(PERLASM_SCHEME) $@

files:
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
+3 −3
Original line number Diff line number Diff line
@@ -39,6 +39,9 @@
# *native* byte order on current platform. See gcm128.c for working
# example...

while (($output=shift) && ($output!~/^\w[\w\-]*\.\w+$/)) {}
open STDOUT,">$output";

$Xi="r0";	# argument block
$Htbl="r1";
$inp="r2";
@@ -59,9 +62,6 @@ $nhi="r14";
$rem_4bit=$inp;	# used in gcm_gmult_4bit
$cnt=$len;

$output=shift;
open STDOUT,">$output";

sub Zsmash() {
  my $i=12;
  my @args=@_;
Loading