From patchwork Mon Mar 27 15:26:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 96079 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp1278825qgd; Mon, 27 Mar 2017 08:26:16 -0700 (PDT) X-Received: by 10.84.134.36 with SMTP id 33mr30882939plg.34.1490628376599; Mon, 27 Mar 2017 08:26:16 -0700 (PDT) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id c26si999825pge.59.2017.03.27.08.26.16; Mon, 27 Mar 2017 08:26:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3028572F74; Mon, 27 Mar 2017 15:26:11 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by mail.openembedded.org (Postfix) with ESMTP id DAA4F72F5F for ; Mon, 27 Mar 2017 15:26:09 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id h125so24136159lfe.0 for ; Mon, 27 Mar 2017 08:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=Tb/LA0tDwFh0YR72fRfNbPqKYhWPNjt21jEkA15HT+c=; b=gREoBZQK/jn62WSHL1+v050+sC1oLESDDN0HWaBUzaeOUbkqL2Te+QbHYHYxiUjDf1 fuFXjjQ6pK9cNqZXK7AIsyPtmaNkssFG7gmD/EiGxRwJDWyG0Yhz3qukeQYAVy/H/sKX BudgM+9TWpBtMgVn0ORYyOcPtExkYaHrnf+JIS0KvVCkb4P3TrBcdO92KJGzrxRUgTAN ablK5xbROpsqqwPYMjLehnOncAzXko1LxMb/7F6+TaPM/Z0CBVPU+ssA4XTsdGvuMGcM twmP2Ds8sybSXifz2pcAX14nPyftIGmktAJk56hvNl4cXlunorF+NI4p+J/wrABe7Svr DIRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=Tb/LA0tDwFh0YR72fRfNbPqKYhWPNjt21jEkA15HT+c=; b=FhxbO0Su0c9kJEEjnU2olsS77nETvW/8GS0ds9Dl1qcqRd3/ftMMSkKw3onsDp91el 98AXbDmYdmvrPJ/zmDM0G/i5BQrtejFY8hS4Q+iohOkRSWzeKyQ7kBSxv6BfbmUTOyHt W3zfYQcrFfp/Yfhcw/NsOXYuvj01rRSXtmJUjYXI+BZl5OCyaBaW9Iood0RNt6ogxCEJ jmwouuYCDOqvGFC0q2g70Y2o6RYW+bpCcZ2fK4z0lrI5MoAvZxoHpaHJGSYHYnzmRnyE kxZW9PfzpDVH9FLKb60AidxRlD6b9TMrNKJQU6FR3oGEy8PiLINhHjxf/1JhxtuYLWOX VCXg== X-Gm-Message-State: AFeK/H1ynb5OylO0AD6OtoxEC/BkrzUFkdFNet6z+LMuzdLFTdoHdQoQXpFn9Hzs6+8H56E3 X-Received: by 10.28.30.19 with SMTP id e19mr10090155wme.52.1490628369861; Mon, 27 Mar 2017 08:26:09 -0700 (PDT) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id 134sm1304147wmj.6.2017.03.27.08.26.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Mar 2017 08:26:09 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 27 Mar 2017 16:26:04 +0100 Message-Id: <1490628365-5428-1-git-send-email-ross.burton@intel.com> X-Mailer: git-send-email 2.8.1 Subject: [OE-core] [PATCH 1/2] boost: build context and coroutine on ARM X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org With the right flags to the build, the context library can be built on ARM. [ YOCTO #11253 ] Signed-off-by: Ross Burton --- meta/recipes-support/boost/boost.inc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -- 2.8.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc index 4ff70e3..f85e1d1 100644 --- a/meta/recipes-support/boost/boost.inc +++ b/meta/recipes-support/boost/boost.inc @@ -28,12 +28,15 @@ BOOST_LIBS = "\ wave \ " -# only supported by x86 and powerpc +# Enable context only on platforms we've verified it builds on +BOOST_LIBS_append_arm = " context coroutine" +BOOST_LIBS_append_arm-64 = " context coroutine" +BOOST_LIBS_append_powerpc = " context coroutine" BOOST_LIBS_append_x86 = " context coroutine" BOOST_LIBS_append_x86-64 = " context coroutine" -BOOST_LIBS_append_powerpc = " context coroutine" # need consistent settings for native builds (x86 override not applied for native) BOOST_LIBS_remove_class-native = " context coroutine" + # does not compile BOOST_LIBS_remove_mips16e = "wave" @@ -168,7 +171,9 @@ BJAM_OPTS = '${BOOST_PARALLEL_MAKE} -d+2 -q \ # Native compilation of bzip2 isn't working BJAM_OPTS_append_class-native = ' -sNO_BZIP2=1' -# Adjust the build for x32 +# Teach bjam how to build as it ignores the compiler flags we pass +BJAM_OPTS_append_arm += " abi=aapcs binary-format=elf address-model=32 architecture=arm" +BJAM_OPTS_append_arm-64 += " abi=aapcs binary-format=elf address-model=64 architecture=arm" BJAM_OPTS_append_linux-gnux32 = " abi=x32 address-model=64" do_configure() {