From patchwork Wed Jun 20 05:21:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 139277 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp338367lji; Tue, 19 Jun 2018 22:21:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKW03w1uATh/EYjnjq+dC/j4KemG/SPOm/jJtIzlJ9zABgQsEvly6hY56DYkewLcWgSvLEh X-Received: by 2002:a65:4aca:: with SMTP id c10-v6mr17260554pgu.327.1529472073295; Tue, 19 Jun 2018 22:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529472073; cv=none; d=google.com; s=arc-20160816; b=VXHJjiowGbTGBKkzxNwkjHMp/Wx+OSfAqthDqgbI/s7koY8v/KUPKWWl7LS4ZFnA/A fpStGHS+BDU8vEl8Ms1UH0kebiZ4CclCbNBssdPw0nECbxQ/8PoRFEOrsJ9VaotOtkbd H7FK/md6RRLFF3ZirkJWgAkwDyogCA8OVzxa7BucDYrB9PtwRqXtqopmRatbinkelh4a wTEQLuRQjPvEPCATO5fGDcVhLBGm45rtACwsQRAzSo/yB7NUcDeUdCxos8fupNdxDsmI JbpFwRN8hzbj9kMJHgEEnEpopsSZLsIX/wwTf2m9GyxMMleFmbgCvL5vZLLFwT1LQsZM 6Gdg== 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=6DD4XloKJwxjwsF1+WIA4p2hME68tAORT3cFKdXr9Zg=; b=SkZCLbgEobsz5HQ8wrcDH6OFOWzRQCPs4aCmNXDSvi4dD0x1Iym4fUD6kHQH+UKoLT FkR6g3L86WoI9tkPAJ2EWP71ZG6VbjeJDO7mckHuCpI4qs6WIQKpE9xTfaGW94yGuui7 H0thYwFH6pto9R4u/yhbmddk0vEi5+oKAL9nf5OcFqU0azGWr/BtcswwBTdLtybrSiwW bdMqnW9hA2z9uD5Co1xHxrU8vjPnQe7sbMOUKlV8x0jZZhVXsh0+W0bbf0Ot10A3GHpm 2VyxRnQXYTF7BGxYLFxnVCE4EkeLWsHyvfmQ1Z4OSKFWXWqmmWaer77O2c8aqKTs08tS PtsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ibXIINmG; 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=QUARANTINE 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 v7-v6si1258289pgb.23.2018.06.19.22.21.12; Tue, 19 Jun 2018 22:21:13 -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=ibXIINmG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 87B9C76056; Wed, 20 Jun 2018 05:21:09 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by mail.openembedded.org (Postfix) with ESMTP id 870DF6086F for ; Wed, 20 Jun 2018 05:21:07 +0000 (UTC) Received: by mail-pl0-f66.google.com with SMTP id 6-v6so1101904plb.0 for ; Tue, 19 Jun 2018 22:21:08 -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=S0y8Mx1xBHJ59WzlYlL0CgtKI/us7ulRR782mKfzisg=; b=ibXIINmGn+eur7Gk4qUR7EC2aD9a6oQTM6zuuadohD4Q61VWn5wTcgIXa85HruRsUX j30yIFRqL929SQpUaexeMRVnQwM6SRrluf78chqWOb9WFuOSHaPulMJQLlwcndlWDmQA 2ZskwrnnNVSE+LwVYBYOO5bTZ67awir1NeZLj1FBW/zESTa8bsW43JpNdxwyjb3KEPE2 j7wXEZX25nNGKLCO7MMaG/9bFawSISNFl1ETASbrlTJexaczPvF7dsxX5uQTgcgIyecp Rom7ZcdAicvkzZi33AVB+tnXLgIV2zQA20NPY4Z9T6o3tTGbEyMUwH1+XK0N1VZD7gVr q0dA== 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=S0y8Mx1xBHJ59WzlYlL0CgtKI/us7ulRR782mKfzisg=; b=n4jCVR+iEFD09aYzL6zS/DJOlzWhBu2fSkrHThkdAE+u02EDtC3h6o8c+0ZoqoTUDf z3BEoMNw8i4aBRBV+8eFtgOOtJB/TILOfBSSrMe8sZJdqGi0p8+NVHc0GihGC219tCJK cc6uay4swCdbyG65bEsUpG2bXVebzyRqRI2b5qTlBqlDSFYvh8OCEqC+QhGkLEzVPX2l wsF3GbM/WVdj8XatpWB9D/VXD+KLX6ReBGggddSJ7cLsJJCBQuTyCY3dcPBON85CS2DB nY79gATUQNbZxZyDiG36Rv7CbXls6VJhxy5QW+tIZL/1X9eN9AN0hRyadqr+GEGmvK27 3cDQ== X-Gm-Message-State: APt69E34V2ozyQD65dkZr5OtMAnoYM8G2rjLoTnlo5D5FI5QHbmMrzo8 ttCT8734Mp6FrwTzw7KYVyMbUA== X-Received: by 2002:a17:902:778e:: with SMTP id o14-v6mr21795024pll.214.1529472068218; Tue, 19 Jun 2018 22:21:08 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::91a0]) by smtp.gmail.com with ESMTPSA id j127-v6sm1317656pgc.10.2018.06.19.22.21.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 22:21:07 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Tue, 19 Jun 2018 22:21:06 -0700 Message-Id: <20180620052106.22306-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [OE-core] [PATCH] gcc-target: Enable fp arch extention when fpu is available 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 This is especially needed when defaulting to hard-float ABI Fixes errors e.g. cc1: error: -mfloat-abi=hard: selected processor lacks an FPU Fixes [YOCTO #12795] Signed-off-by: Khem Raj Cc: Ross Burton --- meta/recipes-devtools/gcc/gcc-target.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index 56e4b95af4..92cad28b7a 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc @@ -14,9 +14,9 @@ EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" # specific). For example, for ARM, ARMv6+ adds atomic instructions that may # affect the ABI in the gcc-runtime libs. Since we can't rely on gcc on the # target to always be passed -march etc, its built-in default needs to be safe. -EXTRA_OECONF_append_armv6 = " --with-arch=armv6" -EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a" -EXTRA_OECONF_append_armv7ve = " --with-arch=armv7ve" +EXTRA_OECONF_append_armv6 = " --with-arch=armv6${@'+fp' if d.getVar('TARGET_FPU') == 'hard' else ''}" +EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a${@'+fp' if d.getVar('TARGET_FPU') == 'hard' else ''}" +EXTRA_OECONF_append_armv7ve = " --with-arch=armv7ve${@'+fp' if d.getVar('TARGET_FPU') == 'hard' else ''}" # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is # set in subdir gcc, so subdir libcc1 can't use it, export it here to