summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-04-26 02:57:32 +0900
committerHerbert Xu <herbert@gondor.apana.org.au>2021-05-14 19:07:54 +0800
commit8116138cbfcee80b1bf9b57073278dcd86b44656 (patch)
tree6552ecdaa5532b4bcf9a3d22a4c86267227237ed
parent7c0303ff7e67b637c47d8afee533ca9e2a02359b (diff)
downloadlinux-stable-8116138cbfcee80b1bf9b57073278dcd86b44656.tar.gz
linux-stable-8116138cbfcee80b1bf9b57073278dcd86b44656.tar.bz2
linux-stable-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