^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) # Makefile for MIPS crypto files..
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) obj-$(CONFIG_CRYPTO_CRC32_MIPS) += crc32-mips.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) obj-$(CONFIG_CRYPTO_CHACHA_MIPS) += chacha-mips.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) chacha-mips-y := chacha-core.o chacha-glue.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) AFLAGS_chacha-core.o += -O2 # needed to fill branch delay slots
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) obj-$(CONFIG_CRYPTO_POLY1305_MIPS) += poly1305-mips.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) poly1305-mips-y := poly1305-core.o poly1305-glue.o
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) perlasm-flavour-$(CONFIG_32BIT) := o32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) perlasm-flavour-$(CONFIG_64BIT) := 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) quiet_cmd_perlasm = PERLASM $@
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) cmd_perlasm = $(PERL) $(<) $(perlasm-flavour-y) $(@)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) $(obj)/poly1305-core.S: $(src)/poly1305-mips.pl FORCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) $(call if_changed,perlasm)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) targets += poly1305-core.S