mk: add crypto capability for armv8a and thunderx
authorAshwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
Tue, 4 Jul 2017 09:24:05 +0000 (02:24 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 Jul 2017 13:56:58 +0000 (15:56 +0200)
commit34e59130672cc3c1226e34be803f6f98a8e567da
tree0569f9c6ecc974930bf1eda7d674f9bdf7529156
parentf9599fa054298b0fb08f8aed7c54d8b64274ef77
mk: add crypto capability for armv8a and thunderx

armv8-a has optional CRYPTO extension which adds the
AES, PMULL, SHA1 and SHA2 capabilities. -march=armv8-a+crypto
enables code generation for the ARMv8-A architecture together
with the optional CRYPTO extensions.

Added the following flags to detect the corresponding
capability at compile time.
 * RTE_MACHINE_CPUFLAG_AES
 * RTE_MACHINE_CPUFLAG_PMULL
 * RTE_MACHINE_CPUFLAG_SHA1
 * RTE_MACHINE_CPUFLAG_SHA2

At run-time, the following flags can be used to detect the
capabilities.
 * RTE_CPUFLAG_AES
 * RTE_CPUFLAG_PMULL
 * RTE_CPUFLAG_SHA1
 * RTE_CPUFLAG_SHA2

Signed-off-by: Ashwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
Reviewed-by: Jan Viktorin <viktorin@rehivetech.com>
mk/machine/armv8a/rte.vars.mk
mk/machine/thunderx/rte.vars.mk
mk/rte.cpuflags.mk
mk/toolchain/gcc/rte.toolchain-compat.mk