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