1 # SPDX-License-Identifier: GPL-2.0
2 obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o
3 vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o
5 ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
6 override flavour := linux-ppc64le
8 ifdef CONFIG_PPC64_ELF_ABI_V2
9 override flavour := linux-ppc64-elfv2
11 override flavour := linux-ppc64
15 quiet_cmd_perl = PERL $@
16 cmd_perl = $(PERL) $< $(flavour) > $@
18 targets += aesp8-ppc.S ghashp8-ppc.S
20 $(obj)/aesp8-ppc.S $(obj)/ghashp8-ppc.S: $(obj)/%.S: $(src)/%.pl FORCE
21 $(call if_changed,perl)
23 OBJECT_FILES_NON_STANDARD_aesp8-ppc.o := y