Leonidas S. Barbosa | d2e3ae6 | 2015-02-06 14:59:48 -0200 | [diff] [blame] | 1 | obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o |
Leonidas S. Barbosa | c07f5d3 | 2016-07-18 12:26:26 -0300 | [diff] [blame] | 2 | vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o |
Leonidas S. Barbosa | d2e3ae6 | 2015-02-06 14:59:48 -0200 | [diff] [blame] | 3 | |
| 4 | ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) |
| 5 | TARGET := linux-ppc64le |
| 6 | else |
Paulo Flabiano Smorigo | 42cb0c7 | 2015-05-14 12:21:04 -0300 | [diff] [blame] | 7 | TARGET := linux-ppc64 |
Leonidas S. Barbosa | d2e3ae6 | 2015-02-06 14:59:48 -0200 | [diff] [blame] | 8 | endif |
| 9 | |
| 10 | quiet_cmd_perl = PERL $@ |
| 11 | cmd_perl = $(PERL) $(<) $(TARGET) > $(@) |
| 12 | |
Naveen N. Rao | 18f47f5 | 2016-11-16 20:41:46 +0530 | [diff] [blame] | 13 | targets += aesp8-ppc.S ghashp8-ppc.S |
Leonidas S. Barbosa | d2e3ae6 | 2015-02-06 14:59:48 -0200 | [diff] [blame] | 14 | |
Naveen N. Rao | 18f47f5 | 2016-11-16 20:41:46 +0530 | [diff] [blame] | 15 | $(obj)/aesp8-ppc.S: $(src)/aesp8-ppc.pl FORCE |
| 16 | $(call if_changed,perl) |
| 17 | |
| 18 | $(obj)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl FORCE |
| 19 | $(call if_changed,perl) |
| 20 | |
| 21 | clean-files := aesp8-ppc.S ghashp8-ppc.S |