xref: /openbmc/linux/arch/powerpc/crypto/Makefile (revision aba0e909)
1# SPDX-License-Identifier: GPL-2.0
2#
3# powerpc/crypto/Makefile
4#
5# Arch-specific CryptoAPI modules.
6#
7
8obj-$(CONFIG_CRYPTO_AES_PPC_SPE) += aes-ppc-spe.o
9obj-$(CONFIG_CRYPTO_MD5_PPC) += md5-ppc.o
10obj-$(CONFIG_CRYPTO_SHA1_PPC) += sha1-powerpc.o
11obj-$(CONFIG_CRYPTO_SHA1_PPC_SPE) += sha1-ppc-spe.o
12obj-$(CONFIG_CRYPTO_SHA256_PPC_SPE) += sha256-ppc-spe.o
13obj-$(CONFIG_CRYPTO_CRC32C_VPMSUM) += crc32c-vpmsum.o
14obj-$(CONFIG_CRYPTO_CRCT10DIF_VPMSUM) += crct10dif-vpmsum.o
15obj-$(CONFIG_CRYPTO_VPMSUM_TESTER) += crc-vpmsum_test.o
16obj-$(CONFIG_CRYPTO_AES_GCM_P10) += aes-gcm-p10-crypto.o
17obj-$(CONFIG_CRYPTO_CHACHA20_P10) += chacha-p10-crypto.o
18obj-$(CONFIG_CRYPTO_POLY1305_P10) += poly1305-p10-crypto.o
19
20aes-ppc-spe-y := aes-spe-core.o aes-spe-keys.o aes-tab-4k.o aes-spe-modes.o aes-spe-glue.o
21md5-ppc-y := md5-asm.o md5-glue.o
22sha1-powerpc-y := sha1-powerpc-asm.o sha1.o
23sha1-ppc-spe-y := sha1-spe-asm.o sha1-spe-glue.o
24sha256-ppc-spe-y := sha256-spe-asm.o sha256-spe-glue.o
25crc32c-vpmsum-y := crc32c-vpmsum_asm.o crc32c-vpmsum_glue.o
26crct10dif-vpmsum-y := crct10dif-vpmsum_asm.o crct10dif-vpmsum_glue.o
27aes-gcm-p10-crypto-y := aes-gcm-p10-glue.o aes-gcm-p10.o ghashp10-ppc.o aesp10-ppc.o
28chacha-p10-crypto-y := chacha-p10-glue.o chacha-p10le-8x.o
29poly1305-p10-crypto-y := poly1305-p10-glue.o poly1305-p10le_64.o
30
31quiet_cmd_perl = PERL    $@
32      cmd_perl = $(PERL) $< $(if $(CONFIG_CPU_LITTLE_ENDIAN), linux-ppc64le, linux-ppc64) > $@
33
34targets += aesp10-ppc.S ghashp10-ppc.S
35
36$(obj)/aesp10-ppc.S $(obj)/ghashp10-ppc.S: $(obj)/%.S: $(src)/%.pl FORCE
37	$(call if_changed,perl)
38
39OBJECT_FILES_NON_STANDARD_aesp10-ppc.o := y
40OBJECT_FILES_NON_STANDARD_ghashp10-ppc.o := y
41