rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 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 | override flavour := linux-ppc64 |
| 9 | endif |
| 10 | |
| 11 | quiet_cmd_perl = PERL $@ |
| 12 | cmd_perl = $(PERL) $(<) $(flavour) > $(@) |
| 13 | |
| 14 | targets += aesp8-ppc.S ghashp8-ppc.S |
| 15 | |
| 16 | $(obj)/aesp8-ppc.S: $(src)/aesp8-ppc.pl FORCE |
| 17 | $(call if_changed,perl) |
| 18 | |
| 19 | $(obj)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl FORCE |
| 20 | $(call if_changed,perl) |
| 21 | |
| 22 | clean-files := aesp8-ppc.S ghashp8-ppc.S |