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