2015-02-06 16:59:48 +00:00
|
|
|
obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o
|
2016-07-18 15:26:26 +00:00
|
|
|
vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o
|
2015-02-06 16:59:48 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y)
|
|
|
|
TARGET := linux-ppc64le
|
|
|
|
else
|
2015-05-14 15:21:04 +00:00
|
|
|
TARGET := linux-ppc64
|
2015-02-06 16:59:48 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
quiet_cmd_perl = PERL $@
|
|
|
|
cmd_perl = $(PERL) $(<) $(TARGET) > $(@)
|
|
|
|
|
2016-11-16 15:11:46 +00:00
|
|
|
targets += aesp8-ppc.S ghashp8-ppc.S
|
|
|
|
|
|
|
|
$(obj)/aesp8-ppc.S: $(src)/aesp8-ppc.pl FORCE
|
|
|
|
$(call if_changed,perl)
|
2015-02-06 16:59:48 +00:00
|
|
|
|
2016-11-16 15:11:46 +00:00
|
|
|
$(obj)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl FORCE
|
|
|
|
$(call if_changed,perl)
|
2015-02-06 16:59:48 +00:00
|
|
|
|
2016-11-16 15:11:46 +00:00
|
|
|
clean-files := aesp8-ppc.S ghashp8-ppc.S
|