xref: /openbmc/linux/drivers/crypto/vmx/Makefile (revision 505ea330)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d2e3ae6fSLeonidas S. Barbosaobj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o
3c07f5d3dSLeonidas S. Barbosavmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o
4d2e3ae6fSLeonidas S. Barbosa
5*505ea330SNicholas Pigginifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
6*505ea330SNicholas Pigginoverride flavour := linux-ppc64le
7*505ea330SNicholas Pigginelse
8*505ea330SNicholas Pigginifdef CONFIG_PPC64_ELF_ABI_V2
9*505ea330SNicholas Pigginoverride flavour := linux-ppc64-elfv2
10*505ea330SNicholas Pigginelse
11*505ea330SNicholas Pigginoverride flavour := linux-ppc64
12*505ea330SNicholas Pigginendif
13*505ea330SNicholas Pigginendif
14*505ea330SNicholas Piggin
15d2e3ae6fSLeonidas S. Barbosaquiet_cmd_perl = PERL    $@
16*505ea330SNicholas Piggin      cmd_perl = $(PERL) $< $(flavour) > $@
17d2e3ae6fSLeonidas S. Barbosa
1818f47f5eSNaveen N. Raotargets += aesp8-ppc.S ghashp8-ppc.S
19d2e3ae6fSLeonidas S. Barbosa
20b52455a7SMasahiro Yamada$(obj)/aesp8-ppc.S $(obj)/ghashp8-ppc.S: $(obj)/%.S: $(src)/%.pl FORCE
2118f47f5eSNaveen N. Rao	$(call if_changed,perl)
22
23OBJECT_FILES_NON_STANDARD_aesp8-ppc.o := y
24