xref: /linux/arch/powerpc/crypto/Makefile (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2323a6bf1SMichael Ellerman#
3323a6bf1SMichael Ellerman# powerpc/crypto/Makefile
4323a6bf1SMichael Ellerman#
5323a6bf1SMichael Ellerman# Arch-specific CryptoAPI modules.
6323a6bf1SMichael Ellerman#
7323a6bf1SMichael Ellerman
8504c6143SMarkus Stockhausenobj-$(CONFIG_CRYPTO_AES_PPC_SPE) += aes-ppc-spe.o
9e8e59953SMarkus Stockhausenobj-$(CONFIG_CRYPTO_MD5_PPC) += md5-ppc.o
10323a6bf1SMichael Ellermanobj-$(CONFIG_CRYPTO_SHA1_PPC) += sha1-powerpc.o
11d9850fc5SMarkus Stockhausenobj-$(CONFIG_CRYPTO_SHA1_PPC_SPE) += sha1-ppc-spe.o
122ecc1e95SMarkus Stockhausenobj-$(CONFIG_CRYPTO_SHA256_PPC_SPE) += sha256-ppc-spe.o
137cf31864SJean Delvareobj-$(CONFIG_CRYPTO_CRC32C_VPMSUM) += crc32c-vpmsum.o
14b01df1c1SDaniel Axtensobj-$(CONFIG_CRYPTO_CRCT10DIF_VPMSUM) += crct10dif-vpmsum.o
15146c8688SDaniel Axtensobj-$(CONFIG_CRYPTO_VPMSUM_TESTER) += crc-vpmsum_test.o
1645a4672bSDanny Tsenobj-$(CONFIG_CRYPTO_AES_GCM_P10) += aes-gcm-p10-crypto.o
17161fca7eSDanny Tsenobj-$(CONFIG_CRYPTO_CHACHA20_P10) += chacha-p10-crypto.o
18161fca7eSDanny Tsenobj-$(CONFIG_CRYPTO_POLY1305_P10) += poly1305-p10-crypto.o
1910930333SDanny Tsenobj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o
20*b42519dbSDanny Tsenobj-$(CONFIG_CRYPTO_CURVE25519_PPC64) += curve25519-ppc64le.o
21323a6bf1SMichael Ellerman
223265c4baSKim Phillipsaes-ppc-spe-y := aes-spe-core.o aes-spe-keys.o aes-tab-4k.o aes-spe-modes.o aes-spe-glue.o
233265c4baSKim Phillipsmd5-ppc-y := md5-asm.o md5-glue.o
24323a6bf1SMichael Ellermansha1-powerpc-y := sha1-powerpc-asm.o sha1.o
253265c4baSKim Phillipssha1-ppc-spe-y := sha1-spe-asm.o sha1-spe-glue.o
263265c4baSKim Phillipssha256-ppc-spe-y := sha256-spe-asm.o sha256-spe-glue.o
276dd7a82cSAnton Blanchardcrc32c-vpmsum-y := crc32c-vpmsum_asm.o crc32c-vpmsum_glue.o
28b01df1c1SDaniel Axtenscrct10dif-vpmsum-y := crct10dif-vpmsum_asm.o crct10dif-vpmsum_glue.o
2981d358b1SMichael Ellermanaes-gcm-p10-crypto-y := aes-gcm-p10-glue.o aes-gcm-p10.o ghashp10-ppc.o aesp10-ppc.o
30161fca7eSDanny Tsenchacha-p10-crypto-y := chacha-p10-glue.o chacha-p10le-8x.o
31161fca7eSDanny Tsenpoly1305-p10-crypto-y := poly1305-p10-glue.o poly1305-p10le_64.o
3210930333SDanny Tsenvmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o
33*b42519dbSDanny Tsencurve25519-ppc64le-y := curve25519-ppc64le-core.o curve25519-ppc64le_asm.o
3410930333SDanny Tsen
3510930333SDanny Tsenifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
3610930333SDanny Tsenoverride flavour := linux-ppc64le
3710930333SDanny Tsenelse
3810930333SDanny Tsenifdef CONFIG_PPC64_ELF_ABI_V2
3910930333SDanny Tsenoverride flavour := linux-ppc64-elfv2
4010930333SDanny Tsenelse
4110930333SDanny Tsenoverride flavour := linux-ppc64
4210930333SDanny Tsenendif
4310930333SDanny Tsenendif
4445a4672bSDanny Tsen
4545a4672bSDanny Tsenquiet_cmd_perl = PERL    $@
4610930333SDanny Tsen      cmd_perl = $(PERL) $< $(flavour) > $@
4745a4672bSDanny Tsen
4810930333SDanny Tsentargets += aesp10-ppc.S ghashp10-ppc.S aesp8-ppc.S ghashp8-ppc.S
4945a4672bSDanny Tsen
5081d358b1SMichael Ellerman$(obj)/aesp10-ppc.S $(obj)/ghashp10-ppc.S: $(obj)/%.S: $(src)/%.pl FORCE
5145a4672bSDanny Tsen	$(call if_changed,perl)
5245a4672bSDanny Tsen
5310930333SDanny Tsen$(obj)/aesp8-ppc.S $(obj)/ghashp8-ppc.S: $(obj)/%.S: $(src)/%.pl FORCE
5410930333SDanny Tsen	$(call if_changed,perl)
5510930333SDanny Tsen
5681d358b1SMichael EllermanOBJECT_FILES_NON_STANDARD_aesp10-ppc.o := y
5781d358b1SMichael EllermanOBJECT_FILES_NON_STANDARD_ghashp10-ppc.o := y
5810930333SDanny TsenOBJECT_FILES_NON_STANDARD_aesp8-ppc.o := y
59