xref: /linux-6.15/arch/mips/crypto/Makefile (revision 289c270e)
14a5dc51eSMarcin Nowakowski# SPDX-License-Identifier: GPL-2.0
24a5dc51eSMarcin Nowakowski#
34a5dc51eSMarcin Nowakowski# Makefile for MIPS crypto files..
44a5dc51eSMarcin Nowakowski#
54a5dc51eSMarcin Nowakowski
63a2f58f3SArd Biesheuvelobj-$(CONFIG_CRYPTO_CHACHA_MIPS) += chacha-mips.o
73a2f58f3SArd Biesheuvelchacha-mips-y := chacha-core.o chacha-glue.o
83a2f58f3SArd BiesheuvelAFLAGS_chacha-core.o += -O2 # needed to fill branch delay slots
9a11d055eSArd Biesheuvel
10a11d055eSArd Biesheuvelobj-$(CONFIG_CRYPTO_POLY1305_MIPS) += poly1305-mips.o
11a11d055eSArd Biesheuvelpoly1305-mips-y := poly1305-core.o poly1305-glue.o
12a11d055eSArd Biesheuvel
13*6c810cf2SMaciej W. Rozyckiperlasm-flavour-$(CONFIG_32BIT) := o32
14*6c810cf2SMaciej W. Rozyckiperlasm-flavour-$(CONFIG_64BIT) := 64
15a11d055eSArd Biesheuvel
16a11d055eSArd Biesheuvelquiet_cmd_perlasm = PERLASM $@
17a11d055eSArd Biesheuvel      cmd_perlasm = $(PERL) $(<) $(perlasm-flavour-y) $(@)
18a11d055eSArd Biesheuvel
19a11d055eSArd Biesheuvel$(obj)/poly1305-core.S: $(src)/poly1305-mips.pl FORCE
20a11d055eSArd Biesheuvel	$(call if_changed,perlasm)
21a11d055eSArd Biesheuvel
22a11d055eSArd Biesheuveltargets += poly1305-core.S
23