From patchwork Wed Apr 24 10:13:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mischa Jonker X-Patchwork-Id: 239147 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 9833E2C00F0 for ; Wed, 24 Apr 2013 20:15:10 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C223F10B8DA; Wed, 24 Apr 2013 10:14:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EdfrI0KXQpwU; Wed, 24 Apr 2013 10:14:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7A0AD10B9A5; Wed, 24 Apr 2013 10:13:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 316148F753 for ; Wed, 24 Apr 2013 10:14:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0268B849AF for ; Wed, 24 Apr 2013 10:13:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tlw2adMe+dTS for ; Wed, 24 Apr 2013 10:13:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from hermes.synopsys.com (hermes.synopsys.com [198.182.44.81]) by whitealder.osuosl.org (Postfix) with ESMTP id D6A528114B for ; Wed, 24 Apr 2013 10:13:50 +0000 (UTC) Received: from mailhost.synopsys.com (unknown [10.9.202.240]) by hermes.synopsys.com (Postfix) with ESMTP id 1579CF6FC for ; Wed, 24 Apr 2013 03:13:51 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 0A57B1C2; Wed, 24 Apr 2013 03:13:51 -0700 (PDT) Received: from localhost.localdomain (nl-droid1.internal.synopsys.com [10.100.24.228]) by mailhost.synopsys.com (Postfix) with ESMTP id 36FB31BC; Wed, 24 Apr 2013 03:13:49 -0700 (PDT) From: Mischa Jonker To: buildroot@busybox.net Date: Wed, 24 Apr 2013 12:13:22 +0200 Message-Id: <1366798403-6984-12-git-send-email-mjonker@synopsys.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1366798403-6984-1-git-send-email-mjonker@synopsys.com> References: <1366798403-6984-1-git-send-email-mjonker@synopsys.com> Cc: Mischa Jonker Subject: [Buildroot] [PATCH v2 11/12] toolchain/gcc: Only enable --with-float when it makes sense X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net According to gcc/config.gcc, only ARM, MIPS and SPARC have the "--with-float" option when configuring gcc. Signed-off-by: Mischa Jonker --- toolchain/gcc/gcc-uclibc-4.x.mk | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/toolchain/gcc/gcc-uclibc-4.x.mk b/toolchain/gcc/gcc-uclibc-4.x.mk index 4c77c5c..f4dbcae 100644 --- a/toolchain/gcc/gcc-uclibc-4.x.mk +++ b/toolchain/gcc/gcc-uclibc-4.x.mk @@ -65,7 +65,10 @@ endif # Determine soft-float options ifeq ($(BR2_SOFT_FLOAT),y) +# only mips*-*-*, arm*-*-* and sparc*-*-* accept --with-float +ifeq ($(BR2_arm)$(BR2_armeb)$(BR2_mips)$(BR2_mipsel)$(BR2_sparc)$(BR2_mips64)$(BR2_mips64el),y) SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft +endif ifeq ($(BR2_arm)$(BR2_armeb),y) # only set float-abi for arm TARGET_SOFT_FLOAT:=-mfloat-abi=soft else