blob: 55f7c392582f648cff1b7466350d4b5554efe00c [file] [log] [blame]
Leonidas S. Barbosad2e3ae62015-02-06 14:59:48 -02001obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o
Leonidas S. Barbosac07f5d32016-07-18 12:26:26 -03002vmx-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. Barbosad2e3ae62015-02-06 14:59:48 -02003
4ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
5TARGET := linux-ppc64le
6else
Paulo Flabiano Smorigo42cb0c72015-05-14 12:21:04 -03007TARGET := linux-ppc64
Leonidas S. Barbosad2e3ae62015-02-06 14:59:48 -02008endif
9
10quiet_cmd_perl = PERL $@
11 cmd_perl = $(PERL) $(<) $(TARGET) > $(@)
12
Naveen N. Rao18f47f52016-11-16 20:41:46 +053013targets += aesp8-ppc.S ghashp8-ppc.S
Leonidas S. Barbosad2e3ae62015-02-06 14:59:48 -020014
Naveen N. Rao18f47f52016-11-16 20:41:46 +053015$(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
21clean-files := aesp8-ppc.S ghashp8-ppc.S