162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci# 362306a36Sopenharmony_ci# Makefile for MIPS crypto files.. 462306a36Sopenharmony_ci# 562306a36Sopenharmony_ci 662306a36Sopenharmony_ciobj-$(CONFIG_CRYPTO_CRC32_MIPS) += crc32-mips.o 762306a36Sopenharmony_ci 862306a36Sopenharmony_ciobj-$(CONFIG_CRYPTO_CHACHA_MIPS) += chacha-mips.o 962306a36Sopenharmony_cichacha-mips-y := chacha-core.o chacha-glue.o 1062306a36Sopenharmony_ciAFLAGS_chacha-core.o += -O2 # needed to fill branch delay slots 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciobj-$(CONFIG_CRYPTO_POLY1305_MIPS) += poly1305-mips.o 1362306a36Sopenharmony_cipoly1305-mips-y := poly1305-core.o poly1305-glue.o 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciperlasm-flavour-$(CONFIG_32BIT) := o32 1662306a36Sopenharmony_ciperlasm-flavour-$(CONFIG_64BIT) := 64 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciquiet_cmd_perlasm = PERLASM $@ 1962306a36Sopenharmony_ci cmd_perlasm = $(PERL) $(<) $(perlasm-flavour-y) $(@) 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci$(obj)/poly1305-core.S: $(src)/poly1305-mips.pl FORCE 2262306a36Sopenharmony_ci $(call if_changed,perlasm) 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_citargets += poly1305-core.S 25