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