diff options
| author | Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com> | 2015-02-06 11:59:48 -0500 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-02-28 05:13:46 -0500 |
| commit | d2e3ae6f3abad839214f7b05c34075a1a7c82470 (patch) | |
| tree | 69addf6380a132aaa2bcbd06e808da11307b2ee5 /drivers/crypto/vmx/Makefile | |
| parent | 5c380d623ed30b71a2441fb4f2e053a4e1a50794 (diff) | |
crypto: vmx - Enabling VMX module for PPC64
This patch enables VMX module in PPC64.
Signed-off-by: Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/vmx/Makefile')
| -rw-r--r-- | drivers/crypto/vmx/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/crypto/vmx/Makefile b/drivers/crypto/vmx/Makefile new file mode 100644 index 000000000000..c699c6e6c82e --- /dev/null +++ b/drivers/crypto/vmx/Makefile | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o | ||
| 2 | vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o ghash.o | ||
| 3 | |||
| 4 | ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) | ||
| 5 | TARGET := linux-ppc64le | ||
| 6 | else | ||
| 7 | TARGET := linux-pcc64 | ||
| 8 | endif | ||
| 9 | |||
| 10 | quiet_cmd_perl = PERL $@ | ||
| 11 | cmd_perl = $(PERL) $(<) $(TARGET) > $(@) | ||
| 12 | |||
| 13 | $(src)/aesp8-ppc.S: $(src)/aesp8-ppc.pl | ||
| 14 | $(call cmd,perl) | ||
| 15 | |||
| 16 | $(src)/ghashp8-ppc.S: $(src)/ghashp8-ppc.pl | ||
| 17 | $(call cmd,perl) | ||
| 18 | |||
| 19 | .PRECIOUS: $(obj)/aesp8-ppc.S $(obj)/ghashp8-ppc.S | ||
