Skip to contentSkip to conversation

package/boost: enable context/coroutine for arm variants

PATCH Applied Pieter De Gendt 2 participants 2 messages Jan 26, 2022 – Feb 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/boost: enable context/coroutine for arm variants

Add boost context support for aarch64/aarch64_be and select AAPCS as ABI for all arm variants.

---
 package/boost/Config.in | 1 +
 package/boost/boost.mk  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
package/boost/Config.in +1 -0
index 1c405a36c3..cc11b8f53e 100644
@@ -74,6 +74,7 @@ config BR2_PACKAGE_BOOST_CONTAINER
 config BR2_PACKAGE_BOOST_CONTEXT_ARCH_SUPPORTS
 	bool
 	default y if ((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM)
+	default y if (BR2_aarch64 || BR2_aarch64_be)
 	default y if BR2_i386
 	default y if BR2_mips
 	default y if BR2_mipsel
package/boost/boost.mk +1 -1
index 2d2a8fb311..b6681b0ad3 100644
@@ -85,7 +85,7 @@ HOST_BOOST_OPTS += --no-cmake-config toolset=gcc threading=multi \
 
 ifeq ($(BR2_MIPS_OABI32),y)
 BOOST_ABI = o32
-else ifeq ($(BR2_arm),y)
+else ifeq ($(BR2_arm)$(BR2_armeb)$(BR2_aarch64)$(BR2_aarch64_be),y)
 BOOST_ABI = aapcs
 else
 BOOST_ABI = sysv
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 2 lines · Pieter De Gendt

Add boost context support for aarch64/aarch64_be and select AAPCS as ABI for all arm variants.

I've added an explanation _why_ the change to AAPCS (because ucontext only
works with AAPCS ABI).

package/boost/Config.in config BR2_PACKAGE_BOOST_CONTAINER · line 74

Quoted 13 lines
---
  package/boost/Config.in | 1 +
  package/boost/boost.mk  | 2 +-
  2 files changed, 2 insertions(+), 1 deletion(-)
package/boost/Config.in +0 -0
index 1c405a36c3..cc11b8f53e 100644
@@ -74,6 +74,7 @@ config BR2_PACKAGE_BOOST_CONTAINER
  config BR2_PACKAGE_BOOST_CONTEXT_ARCH_SUPPORTS

There's a comment just above this that refers to an outdated URL. I've updated
that as well.

Applied to master, thanks.

Regards,
Arnout

Quoted 11 lines
package/boost/Config.in +1 -0
  	bool
  	default y if ((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM)
+	default y if (BR2_aarch64 || BR2_aarch64_be)
  	default y if BR2_i386
  	default y if BR2_mips
  	default y if BR2_mipsel
package/boost/boost.mk +0 -0
index 2d2a8fb311..b6681b0ad3 100644

package/boost/boost.mk HOST_BOOST_OPTS += --no-cmake-config toolset=gcc threading=multi \ · line 91

Quoted 8 lines
package/boost/boost.mk +1 -1
@@ -85,7 +85,7 @@ HOST_BOOST_OPTS += --no-cmake-config toolset=gcc threading=multi \
 
  ifeq ($(BR2_MIPS_OABI32),y)
  BOOST_ABI = o32
-else ifeq ($(BR2_arm),y)
+else ifeq ($(BR2_arm)$(BR2_armeb)$(BR2_aarch64)$(BR2_aarch64_be),y)
  BOOST_ABI = aapcs
  else
  BOOST_ABI = sysv

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot