From patchwork Sat Sep 23 00:58:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 114112 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp135772qgf; Fri, 22 Sep 2017 17:58:38 -0700 (PDT) X-Received: by 10.99.165.25 with SMTP id n25mr717523pgf.51.1506128318272; Fri, 22 Sep 2017 17:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506128318; cv=none; d=google.com; s=arc-20160816; b=M9efhM7UZ5mTvgdEum3ZOTB91SWTmrwCwH2LrFERrq4GMTgpmLCCDUiYvjDArGhqu9 r9dKc+7atAMnAzJKuvdwrMUTdeThDllG1WP4i7iVM2SgAAdVLM2fPU1n+FPISdYQfpa5 wEqqkCRoMTX6xbA5AOqa1BmZcUMC2I4R01hWzwNSYVndxQgdw4tiC9pZ4DCiwoPloM4F brdBgnxsaGaAQk7bgPT66pzZvst0T+I4FxiKgfUlG8tA9HV28wrtO4sMLOfC7HculZrT +1YFJsfcfj5I4ytWAcE43kYiKDj9l42Gkp3kKHNAjAmj+GsGLSnHUKt0CxPKisT9RnVG OrkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=iyS50ukD7zrhWvcez+S4W0cCu15GFJcOT50qdb02WGE=; b=TxieHST49ed7AaBRpriiHMb44RlkNRUoNjelJaJu731fCxUwUbJu7ndXf+Xm8d6qbC o+1y/8S5of/HCdqcsz6MY1Op8ffO+XYkB9QE1kVS1yfxXEVRGaA6kRC5qZ2F1JyAH0Hy 8qz3x79sxxvUhkrvHP4ZjwQD3u1wE56TQIVzYxEuRMI304ZLf4hX0I4VKjmd/RkjKEOU lJAdUnBq2dsfr2HXsa6Hrnx3vIwcVY0iruey8QDY+SugxRmwN1EbVrcAHeIExwaYPjmE Fn4mfi/7LB7GyoUY4Q2BjXkZjSW36yPXsRUY2ZCgj45583taxD1Jj1YcCWJsTvwQc5D7 Rc2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=rX8EzfF2; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id c4si581813pgn.433.2017.09.22.17.58.37; Fri, 22 Sep 2017 17:58:38 -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=@gmail.com header.s=20161025 header.b=rX8EzfF2; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C4B1478474; Sat, 23 Sep 2017 00:58:32 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by mail.openembedded.org (Postfix) with ESMTP id 1A6E278422 for ; Sat, 23 Sep 2017 00:58:31 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id g65so1114224pfe.1 for ; Fri, 22 Sep 2017 17:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Lp2EIylXXpoRxhLMtBb9Ibjb7zsp4fuESVzRwixtzQ4=; b=rX8EzfF2owK1i7ZcTZn5WFufKWttnZrFRHAnwHaUG3PDrBFXQlDSfa02aWNu3R08D4 h7NBuzJeXQPa1pLHfOE8n1ucU5qSbxPuR/RqIbMns+esPdciiaeEYnQLjmujDen1dVRe 2O1t1nGz0U13qKCnP7cHSoNlxQ8y1TXkoy54ZP8e2ayY0e3SDaErOxB+nlyNo5PhRMzg dcFn+jDXyEMv3GyyYEUTlgfTyoBCKf/iOjVxjt1t2wBGrYbO6qoNW5C3v2FLq0YA7UZ/ bclcYOG2HoLb3sKByNXQWeXuqMToqCjsL3dv3sL3f1LRzeTrm1esEMuNedTQKu8iBKnv 9aUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Lp2EIylXXpoRxhLMtBb9Ibjb7zsp4fuESVzRwixtzQ4=; b=TAfVEXQbB7UFcDauxqRTZK2p4pL0niQyAK+TN1zxWHlvHVtpgtGv2nX0wLiSXNKKZk DkbmQuANcyaHPWRyS88vcpWypWiMyq9gTsDCqjPj/oIjNWAtvqVwKCzkwHSeu118eme/ ZbxMnEJjH1qewMVJaQfN4bOqxtR3C1WvaxUAySbPfG5VhcLhYdYo20mcivLpXX2nRGje 4rlVenLvVbSmGz3Z5ct49ZAc/Z6EwY+qzdUR7cNTN6nfsc6NXX1nKVqlJuIMWDf4vC9c qYDuyu0g7e9oujQeVHkVKSNCzwHlBeNKfXqg/gRSCr14u9v3ZOu43RkB7pDwnkrSOWyv 7HZQ== X-Gm-Message-State: AHPjjUiQEsghK781Ldyr6SGDARgiTRyHYdK84X6T/ZGFBpq/j+0qSzdY necgLtiVaw/a3hcE3LYIs2vCkg== X-Google-Smtp-Source: AOwi7QDC0ZNLmQ4CFB6DqFKspPxICbUquI0rSBtoaS2akHLMQ43oSO/C5sw9SOYeEaEuB0w7hsmOpQ== X-Received: by 10.84.234.140 with SMTP id n12mr724193plk.209.1506128313128; Fri, 22 Sep 2017 17:58:33 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::e57f]) by smtp.gmail.com with ESMTPSA id b66sm1151521pfe.165.2017.09.22.17.58.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 17:58:32 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 22 Sep 2017 17:58:20 -0700 Message-Id: <20170923005823.10278-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [OE-core] [PATCH 1/4] goarch.bbclass: fixups for Go mips32 support 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 From: Matt Madison * Fix the regular expression in the mips test * Flag as incompatible any mips32 tunes for n32 ABI or soft-float, as go does not support them. * Replace mips32r2 tune with mips32r1. Go only supports mips32r1, which is a strict subset of r2. Adjusting this tune is not ideal, but is hopefully a temporary measure until more complete mips32 ISA coverage arrives upstream. [YOCTO #12108] Signed-off-by: Matt Madison Signed-off-by: Khem Raj --- meta/classes/goarch.bbclass | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) -- 2.14.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 8b95c5fe94..9ed562d5ab 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass @@ -43,10 +43,14 @@ def go_map_arch(a, d): return 'mips64le' elif re.match('mips64*', a): return 'mips64' - elif re.match('mipsel*', a): - return 'mipsle' - elif re.match('mips*', a): - return 'mips' + elif re.match('mips.*', a): + tf = d.getVar('TUNE_FEATURES').split() + if 'fpu-hard' in tf and 'n32' not in tf: + if 'mips32r2' in tf: + newtf = [t for t in tf if t != 'mips32r2'] + newtf.append('mips32') + d.setVar('TUNE_FEATURES', ' '.join(newtf)) + return 'mips' if 'bigendian' in tf else 'mipsle' elif re.match('p(pc|owerpc)(64)', a): return 'ppc64' elif re.match('p(pc|owerpc)(64el)', a):