]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
crypto: arm/crc32 - add build time test for CRC instruction support
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 28 Feb 2017 14:36:57 +0000 (14:36 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 1 Mar 2017 11:47:53 +0000 (19:47 +0800)
commitefa7cebdbfde8506b54acd8947822394768cd476
tree69dd36ac1ae52613c65d24223587b8747d9fef38
parent1fb1683cb343d80736625f3048de2107cf5bbf79
crypto: arm/crc32 - add build time test for CRC instruction support

The accelerated CRC32 module for ARM may use either the scalar CRC32
instructions, the NEON 64x64 to 128 bit polynomial multiplication
(vmull.p64) instruction, or both, depending on what the current CPU
supports.

However, this also requires support in binutils, and as it turns out,
versions of binutils exist that support the vmull.p64 instruction but
not the crc32 instructions.

So refactor the Makefile logic so that this module only gets built if
binutils has support for both.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/Makefile