GNU Linux-libre 6.7.9-gnu
[releases.git] / drivers / crypto / vmx / Makefile
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
4
5 ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
6 override flavour := linux-ppc64le
7 else
8 ifdef CONFIG_PPC64_ELF_ABI_V2
9 override flavour := linux-ppc64-elfv2
10 else
11 override flavour := linux-ppc64
12 endif
13 endif
14
15 quiet_cmd_perl = PERL    $@
16       cmd_perl = $(PERL) $< $(flavour) > $@
17
18 targets += 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
23 OBJECT_FILES_NON_STANDARD_aesp8-ppc.o := y