18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci# 38c2ecf20Sopenharmony_ci# Makefile for MIPS crypto files.. 48c2ecf20Sopenharmony_ci# 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_CRC32_MIPS) += crc32-mips.o 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_CHACHA_MIPS) += chacha-mips.o 98c2ecf20Sopenharmony_cichacha-mips-y := chacha-core.o chacha-glue.o 108c2ecf20Sopenharmony_ciAFLAGS_chacha-core.o += -O2 # needed to fill branch delay slots 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciobj-$(CONFIG_CRYPTO_POLY1305_MIPS) += poly1305-mips.o 138c2ecf20Sopenharmony_cipoly1305-mips-y := poly1305-core.o poly1305-glue.o 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciperlasm-flavour-$(CONFIG_32BIT) := o32 168c2ecf20Sopenharmony_ciperlasm-flavour-$(CONFIG_64BIT) := 64 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciquiet_cmd_perlasm = PERLASM $@ 198c2ecf20Sopenharmony_ci cmd_perlasm = $(PERL) $(<) $(perlasm-flavour-y) $(@) 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci$(obj)/poly1305-core.S: $(src)/poly1305-mips.pl FORCE 228c2ecf20Sopenharmony_ci $(call if_changed,perlasm) 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_citargets += poly1305-core.S 25