]> code.ossystems Code Review - openembedded-core.git/commitdiff
boost: build context and coroutine for arm
authorVernon Mauery <vernon.mauery@linux.intel.com>
Tue, 25 Sep 2018 21:17:59 +0000 (14:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 26 Sep 2018 14:13:39 +0000 (15:13 +0100)
When cross-compiling for arm architecture, bjam fails to properly
detect the abi, which causes a failed conditional to omit the
assembly code that supports the platform.

Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/boost/boost.inc

index 6984bee7777c0a4264f747fe73dbbedca20e91f9..c4faea211f0986836d8e9204ee0ed52dcfcf21cf 100644 (file)
@@ -33,6 +33,7 @@ BOOST_LIBS = "\
 BOOST_LIBS_append_x86 = " context coroutine"
 BOOST_LIBS_append_x86-64 = " context coroutine"
 BOOST_LIBS_append_powerpc = " context coroutine"
+BOOST_LIBS_append_arm = " context coroutine"
 # need consistent settings for native builds (x86 override not applied for native)
 BOOST_LIBS_remove_class-native = " context coroutine"
 # does not compile
@@ -149,6 +150,9 @@ BJAM_OPTS_append_class-native = ' -sNO_BZIP2=1'
 # Adjust the build for x32
 BJAM_OPTS_append_x86-x32 = " abi=x32 address-model=64"
 
+# cross compiling for arm fails to detect abi, so provide some help
+BJAM_OPTS_append_arm = " abi=aapcs architecture=arm"
+
 do_configure() {
        cp -f ${S}/boost/config/platform/linux.hpp ${S}/boost/config/platform/linux-gnueabi.hpp