summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-04-25 19:57:32 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2021-05-14 13:07:54 +0200
commit8116138cbfcee80b1bf9b57073278dcd86b44656 (patch)
tree6552ecdaa5532b4bcf9a3d22a4c86267227237ed
parentcrypto: arm - generate *.S by Perl at build time instead of shipping them (diff)
downloadlinux-8116138cbfcee80b1bf9b57073278dcd86b44656.tar.xz
linux-8116138cbfcee80b1bf9b57073278dcd86b44656.zip
crypto: arm - use a pattern rule for generating *.S files
Unify similar build rules. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--arch/arm/crypto/Makefile8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/crypto/Makefile b/arch/arm/crypto/Makefile
index 51f160c61740..eafa898ba6a7 100644
--- a/arch/arm/crypto/Makefile
+++ b/arch/arm/crypto/Makefile
@@ -48,13 +48,7 @@ curve25519-neon-y := curve25519-core.o curve25519-glue.o
quiet_cmd_perl = PERL $@
cmd_perl = $(PERL) $(<) > $(@)
-$(obj)/poly1305-core.S: $(src)/poly1305-armv4.pl
- $(call cmd,perl)
-
-$(obj)/sha256-core.S: $(src)/sha256-armv4.pl
- $(call cmd,perl)
-
-$(obj)/sha512-core.S: $(src)/sha512-armv4.pl
+$(obj)/%-core.S: $(src)/%-armv4.pl
$(call cmd,perl)
clean-files += poly1305-core.S sha256-core.S sha512-core.S