botan: disable AltiVec if the CPU does not support it
authorTobias Blass <tobias.blass@rohde-schwarz.com>
Tue, 6 Jun 2017 14:29:11 +0000 (16:29 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 6 Jun 2017 19:44:20 +0000 (21:44 +0200)
commite654839f9e2cc6d2780916d0288941cb3d4555dd
tree9c519fc00db6d11da823fe01385caecd5162af84
parent017d105a6f30b450303effdbdcbac9905c94e870
botan: disable AltiVec if the CPU does not support it

Botan compiles all PowerPC code with AltiVec support and only determines
at runtime whether the CPU even supports it. If the target CPU uses the
older SPE extensions, though, this is too late; since SPE and AltiVec
are incompatible, gcc aborts the compilation. This patch explicitly
disables AltiVec support unless BR2_POWERPC_CPU_HAS_ALTIVEC is defined

Signed-off-by: Tobias Blass <tobias.blass@rohde-schwarz.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/botan/botan.mk