Botan: Disable AltiVec if the CPU does not support it
PATCH 1/1 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
--- package/botan/botan.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/botan/botan.mk +6 -0
@@ -43,6 +43,12 @@ BOTAN_DEPENDENCIES += zlib BOTAN_CONF_OPTS += --with-zlib endif +ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),y) +BOTAN_CONF_OPTS += --enable-altivec +else +BOTAN_CONF_OPTS += --disable-altivec +endif + define BOTAN_CONFIGURE_CMDS (cd $(@D); $(TARGET_MAKE_ENV) ./configure.py $(BOTAN_CONF_OPTS)) endef
--
1.8.3.1
Thomas Petazzoni
AppliedPATCH 1/1 Botan: Disable AltiVec if the CPU does not support it
Hello,
Quoted 9 lines · Tobias.Blass at rohde-schwarz.com
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 unlessBR2_POWERPC_CPU_HAS_ALTIVECis defined
Quoted 4 lines
Signed-off-by Tobias Blass <[email protected]>--- package/botan/botan.mk | 6 ++++++ 1 file changed, 6 insertions(+)
Applied to master, thanks. Peter: since it apparently fixes a runtime issue, I guess we could backport to LTS branch.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 Botan: Disable AltiVec if the CPU does not support it
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hello,
Quoted 9 lines · Tobias.Blass at rohde-schwarz.com
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 unlessBR2_POWERPC_CPU_HAS_ALTIVECis defined
Quoted 7 lines
Quoted 4 lines
Signed-off-by Tobias Blass <[email protected]>---
package/botan/botan.mk| 6 ++++++1 file changed, 6 insertions(+)Applied to master, thanks. Peter: since it apparently fixes a runtime issue, I guess we could backport to LTS branch.
botan was bumped post-2017.05, but looking at the diff from 1.0.13 to 1.0.16, it looks like the older version has the same issue - So committed to 2017.02.x and 2017.05.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard