From patchwork Fri Jul 21 17:06:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 792225 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xDcct5Mn7z9sNw for ; Sat, 22 Jul 2017 03:06:54 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DFB4D2DC4A; Fri, 21 Jul 2017 17:06:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LQOphh8taE+i; Fri, 21 Jul 2017 17:06:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 58D142F664; Fri, 21 Jul 2017 17:06:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 2E82A1C0146 for ; Fri, 21 Jul 2017 17:06:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2626D2F664 for ; Fri, 21 Jul 2017 17:06:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H7p9kpfz-rUG for ; Fri, 21 Jul 2017 17:06:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by silver.osuosl.org (Postfix) with ESMTP id 8475C2DC4A for ; Fri, 21 Jul 2017 17:06:42 +0000 (UTC) Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Forcepoint Email with ESMTPS id D33603F9BFE39 for ; Fri, 21 Jul 2017 18:06:36 +0100 (IST) Received: from vriera-linux.le.imgtec.org (192.168.154.36) by HHMAIL01.hh.imgtec.org (10.100.10.21) with Microsoft SMTP Server (TLS) id 14.3.294.0; Fri, 21 Jul 2017 18:06:40 +0100 From: Vicente Olivert Riera To: Date: Fri, 21 Jul 2017 18:06:32 +0100 Message-ID: <20170721170635.41202-2-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170721170635.41202-1-Vincent.Riera@imgtec.com> References: <20170721170635.41202-1-Vincent.Riera@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [192.168.154.36] Subject: [Buildroot] [PATCH 2/5] arch/mips: add option for toolchains supporting -mfpxx X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" -mfpxx option was added in gcc-5.1.0 so make sure that users cannot select the "xx" fp32 mode when using toolchains that have a gcc older than 5.1.0. -mfp32 and -mfp64 were added in gcc-4.1.0, so given the older gcc version we support in Buildroot (in the GCC_AT_LEAST options) is 4.3 we don't need to do anything else for them. Signed-off-by: Vicente Olivert Riera --- arch/Config.in.mips | 3 ++- toolchain/toolchain-common.in | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/Config.in.mips b/arch/Config.in.mips index 3d2dfe3f49..de37f0eb82 100644 --- a/arch/Config.in.mips +++ b/arch/Config.in.mips @@ -137,7 +137,7 @@ config BR2_MIPS_SOFT_FLOAT choice prompt "FP mode" depends on !BR2_ARCH_IS_64 && !BR2_MIPS_SOFT_FLOAT - default BR2_MIPS_FP32_MODE_XX + default BR2_MIPS_FP32_MODE_XX if BR2_TOOLCHAIN_HAS_MFPXX_OPTION help MIPS32 supports different FP modes (32,xx,64). Information about FP modes can be found here: @@ -149,6 +149,7 @@ config BR2_MIPS_FP32_MODE_32 depends on !BR2_MIPS_CPU_MIPS32R6 config BR2_MIPS_FP32_MODE_XX + depends on BR2_TOOLCHAIN_HAS_MFPXX_OPTION bool "xx" config BR2_MIPS_FP32_MODE_64 diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in index 0002682e12..dd192b9ba4 100644 --- a/toolchain/toolchain-common.in +++ b/toolchain/toolchain-common.in @@ -346,6 +346,10 @@ config BR2_TOOLCHAIN_HAS_MNAN_OPTION bool default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 +config BR2_TOOLCHAIN_HAS_MFPXX_OPTION + bool + default y if BR2_TOOLCHAIN_GCC_AT_LEAST_5 + config BR2_TOOLCHAIN_HAS_SYNC_1 bool default y