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 945a4672bSDanny Tsenobj-$(CONFIG_CRYPTO_AES_GCM_P10) += aes-gcm-p10-crypto.o 1010930333SDanny Tsenobj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o 11323a6bf1SMichael Ellerman 120892c91bSEric Biggersaes-ppc-spe-y := aes-spe-glue.o 1381d358b1SMichael Ellermanaes-gcm-p10-crypto-y := aes-gcm-p10-glue.o aes-gcm-p10.o ghashp10-ppc.o aesp10-ppc.o 14*73f315c1SEric Biggersvmx-crypto-objs := vmx.o aes_cbc.o aes_ctr.o aes_xts.o 1510930333SDanny Tsen 1610930333SDanny Tsenifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) 1710930333SDanny Tsenoverride flavour := linux-ppc64le 1810930333SDanny Tsenelse 1910930333SDanny Tsenifdef CONFIG_PPC64_ELF_ABI_V2 2010930333SDanny Tsenoverride flavour := linux-ppc64-elfv2 2110930333SDanny Tsenelse 2210930333SDanny Tsenoverride flavour := linux-ppc64 2310930333SDanny Tsenendif 2410930333SDanny Tsenendif 2545a4672bSDanny Tsen 2645a4672bSDanny Tsenquiet_cmd_perl = PERL $@ 2710930333SDanny Tsen cmd_perl = $(PERL) $< $(flavour) > $@ 2845a4672bSDanny Tsen 29*73f315c1SEric Biggerstargets += aesp10-ppc.S ghashp10-ppc.S 3045a4672bSDanny Tsen 3181d358b1SMichael Ellerman$(obj)/aesp10-ppc.S $(obj)/ghashp10-ppc.S: $(obj)/%.S: $(src)/%.pl FORCE 3245a4672bSDanny Tsen $(call if_changed,perl) 3345a4672bSDanny Tsen 3481d358b1SMichael EllermanOBJECT_FILES_NON_STANDARD_aesp10-ppc.o := y 3581d358b1SMichael EllermanOBJECT_FILES_NON_STANDARD_ghashp10-ppc.o := y 36