Commit 553aeac6c8d9a30ce3f6572d194da42c4df6d933

Authored by Vinson Lee
Committed by Greg Kroah-Hartman
1 parent 1a7227fe00

crypto: sha-mb - Add avx2_supported check.

commit 0b8c960cf6defc56b3aa1a71b5af95872b6dff2b upstream.

This patch fixes this allyesconfig target build error with older
binutils.

  LD      arch/x86/crypto/built-in.o
ld: arch/x86/crypto/sha-mb/built-in.o: No such file: No such file or directory

Signed-off-by: Vinson Lee <vlee@twitter.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/x86/crypto/Makefile
... ... @@ -26,7 +26,6 @@
26 26  
27 27 obj-$(CONFIG_CRYPTO_CRC32C_INTEL) += crc32c-intel.o
28 28 obj-$(CONFIG_CRYPTO_SHA1_SSSE3) += sha1-ssse3.o
29   -obj-$(CONFIG_CRYPTO_SHA1_MB) += sha-mb/
30 29 obj-$(CONFIG_CRYPTO_CRC32_PCLMUL) += crc32-pclmul.o
31 30 obj-$(CONFIG_CRYPTO_SHA256_SSSE3) += sha256-ssse3.o
32 31 obj-$(CONFIG_CRYPTO_SHA512_SSSE3) += sha512-ssse3.o
... ... @@ -46,6 +45,7 @@
46 45 ifeq ($(avx2_supported),yes)
47 46 obj-$(CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64) += camellia-aesni-avx2.o
48 47 obj-$(CONFIG_CRYPTO_SERPENT_AVX2_X86_64) += serpent-avx2.o
  48 + obj-$(CONFIG_CRYPTO_SHA1_MB) += sha-mb/
49 49 endif
50 50  
51 51 aes-i586-y := aes-i586-asm_32.o aes_glue.o