[OE-core] [warrior][ 25/50] boost: Fix build and enable context and coroutines on aarch64

akuster808 akuster808 at gmail.com
Wed Sep 25 00:41:15 UTC 2019



On 9/23/19 8:37 PM, Andre McCurdy wrote:
> On Mon, Sep 23, 2019 at 7:52 PM Armin Kuster <akuster808 at gmail.com> wrote:
>> From: "Bedel, Alban" <alban.bedel at aerq.com>
>>
>> Like for ARM bjam need some hints about the ABI to properly build on
>> aarch64. While at it also enable context and coroutine as these are
>> supported on aarch64.
> What's the symptom when this is mis-detected ?
>
> I'm guessing big endian 32bit ARM (ie the _armeb over-ride) probably
> needs the same fix too... but it's not clear how to test or confirm
> that.

You need to ask the author of the patch. This is in master and a
backport request was sent
https://patchwork.openembedded.org/patch/163995/

with no community feedback. This seemed like a fix to an issue.

- armin
>> Signed-off-by: Alban Bedel <alban.bedel at aerq.com>
>> Signed-off-by: Armin Kuster <akuster808 at gmail.com>
>> ---
>>  meta/recipes-support/boost/boost.inc | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc
>> index 9be3717..c2e2cbb 100644
>> --- a/meta/recipes-support/boost/boost.inc
>> +++ b/meta/recipes-support/boost/boost.inc
>> @@ -33,6 +33,7 @@ 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"
>> +BOOST_LIBS_append_aarch64 = " context coroutine"
>>  # need consistent settings for native builds (x86 override not applied for native)
>>  BOOST_LIBS_remove_class-native = " context coroutine"
>>  # does not compile
>> @@ -151,6 +152,7 @@ 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"
>> +BJAM_OPTS_append_aarch64 = " abi=aapcs address-model=64 architecture=arm"
>>
>>  do_configure() {
>>         cp -f ${S}/boost/config/platform/linux.hpp ${S}/boost/config/platform/linux-gnueabi.hpp
>> --
>> 2.7.4
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list