crypto: arm64 - use a pattern rule for generating *.S files

Unify similar build rules.

sha256-core.S opts out it because it is generated from sha512-armv8.pl.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Masahiro Yamada 2021-04-26 02:57:34 +09:00 committed by Herbert Xu
parent 12dd461ebd
commit 2063257d4b
1 changed files with 1 additions and 4 deletions

View File

@ -71,13 +71,10 @@ $(obj)/aes-glue-%.o: $(src)/aes-glue.c FORCE
quiet_cmd_perlasm = PERLASM $@
cmd_perlasm = $(PERL) $(<) void $(@)
$(obj)/poly1305-core.S: $(src)/poly1305-armv8.pl
$(obj)/%-core.S: $(src)/%-armv8.pl
$(call cmd,perlasm)
$(obj)/sha256-core.S: $(src)/sha512-armv8.pl
$(call cmd,perlasm)
$(obj)/sha512-core.S: $(src)/sha512-armv8.pl
$(call cmd,perlasm)
clean-files += poly1305-core.S sha256-core.S sha512-core.S